In the previous post, you saw some XPath to find the ProviderManifestToken attribute in an .edmx file.
Writing XPath queries can be quite consuming, so it is nice of you can test it somewhere on-line.
Out of the on-line XPath testers, these two worked best:
- XPath Online tool (by Mark Bucayan)
It runs in your browser, and uses the Microsoft.XMLDOM for parsing. - Allans Online XPath Tester (by Allan Thræn)
It runs serverside, and uses the .NET System.Xml.XmlDocument (the .NET System.Xml is very different from the Microsoft.XMLDOM)
Both of them support namespaces, including these XPath functions: local-name and namespace-uri.
These failed:
- The bit-101 XPath Query Tool
It does not support XPath functions, as it uses the XML support that xfactorstudio.com wrote for Flash. Both are lousy. - XPath Expression Testbed
It does not even support basic XML with namespaces.
If you have more on-line tools that work: please let me know!
Edit (20120524T0930):
Danny Thorpe tweeted an interesting comment:
@jpluimers If you’re compiling XPath support, make note of whether it’s XPATH 1.0 or 2.0. I think .NET only implements XPATH 1.0
Indeed, .NET only supports XPath 1.0, and worse, .NET 4 introduced a couple of issues with XSLT (see XPath and XSLT 2.0 for .NET? – Stack Overflow).
Luckily there are some goot XPath 2.0 libraries for .NET (see XPath 2.0 Libraries for .Net – Stack Overflow).
–jeroen





