---
title: "Using XPath to find objects in your object model"
url: "https://osherove.com/blog/2003/7/27/using-xpath-to-find-objects-in-your-object-model.md"
canonical: "https://osherove.com/blog/2003/7/27/using-xpath-to-find-objects-in-your-object-model.html"
published: "2003-07-27T09:07:00"
updated: "2003-07-27T09:07:00"
tags: [".Net Quotations"]
author: "Roy Osherove"
description: "Sean Gerety points to an MSDN article on how to query over object models using ObjectXPathNavigator . very interesting. I'll just point out to this fine article by Dino Esposito, regarding implementation of the exact…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Using XPath to find objects in your object model

By Roy Osherove July 27, 2003 In [.Net Quotations](https://osherove.com/blog/category/net-quotations)

**Historical article** · Originally published July 27, 2003; technical details may be outdated.

[Sean Gerety points](http://dotnetjunkies.com/WebLog/metablog/posts/516.aspx) to an MSDN article on how to [query over object models using ObjectXPathNavigator](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/html/xml03172003.asp). very interesting.

I'll just point out to this fine article by Dino Esposito, regarding implementation of the exact same thing, only from a different angle :

["Implementing XmlReader Classes for Non-XML Data Structures and Formats"](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/custxmlread.asp)

## More in .Net Quotations

[All posts in .Net Quotations](https://osherove.com/blog/category/net-quotations)

- Jul 28, 2003

    ### [Registration-free COM interop](https://osherove.com/blog/2003/7/28/registration-free-com-interop.html)

- Jul 27, 2003

    ### [Moving Crystal reports from 1.0 to 1.1](https://osherove.com/blog/2003/7/27/moving-crystal-reports-from-10-to-11.html)

- Jul 27, 2003

    ### [More on Modifying IL at runtime](https://osherove.com/blog/2003/7/27/more-on-modifying-il-at-runtime.html)

- Jul 24, 2003

    ### [Rewrite MSIL Code on the Fly](https://osherove.com/blog/2003/7/24/rewrite-msil-code-on-the-fly.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
