65.9K
CodeProject is changing. Read more.
Home

Debugging XPath Queries

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.14/5 (14 votes)

Dec 2, 2003

1 min read

viewsIcon

98344

downloadIcon

2004

An application to visualize XPath Queries

Sample Image - screenshot.jpg

Introduction

This is a small application I wrote when I was stuck in front of an XPath query that I just couldn't understand. Took about an hour and a half to whip it up. The idea is to let you execute a query and see for yourself the results that are returned.

There are other tools that do it, but either they are Java based and require > 15 MB support libraries or they are web based (which I hate).

The Code

The application gets its input from one of two sources - a file or the clipboard, loads it into an XmlDocument and starts executing queries against it, showing you the result on the way.

I didn't built it to be performant or correct, just to do the job, so use it the next time you've XPath problems, and you'll like it. The other solution that I found was XmlSpy at 300$ +.

License

This article has no explicit license attached to it, but may contain usage terms in the article text or the download files themselves. If in doubt, please contact the author via the discussion board below.

A list of licenses authors might use can be found here.