Click here to Skip to main content
13,861,169 members
Click here to Skip to main content
Add your own
alternative version


29 bookmarked
Posted 1 Dec 2003

Debugging XPath Queries

, 1 Dec 2003
Rate this:
Please Sign up or sign in to vote.
An application to visualize XPath Queries

Sample Image - screenshot.jpg


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$ +.


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.


About the Author
United States United States
Hi, Been a member since 2003. Recent projects are a site about buying a car with bad credit and enjoying codeproject as usual.

You may also be interested in...

Comments and Discussions

GeneralGenerating xpath add-on (quick and dirty) [modified] Pin
MikeEast16-Jan-08 23:24
memberMikeEast16-Jan-08 23:24 
Generalin VB.NET Pin
y2kvirus22-Aug-05 13:50
membery2kvirus22-Aug-05 13:50 
GeneralWrong topic Pin
alerma14-Dec-03 22:48
memberalerma14-Dec-03 22:48 
GeneralGood job Pin
Bill Seddon9-Dec-03 22:21
memberBill Seddon9-Dec-03 22:21 
GeneralRe: Good job Pin
Marc Brooks29-Jan-04 9:45
memberMarc Brooks29-Jan-04 9:45 
GeneralRe: Good job Pin
Bill Seddon29-Jan-04 9:55
memberBill Seddon29-Jan-04 9:55 
AnswerRe: Good job Pin
Marc Brooks10-Oct-06 6:59
memberMarc Brooks10-Oct-06 6:59 
GeneralGood work, but... Pin
Christoph Lederer9-Dec-03 22:19
memberChristoph Lederer9-Dec-03 22:19 
GeneralRe: Good work, but... Pin
Edneeis3-Feb-04 19:59
memberEdneeis3-Feb-04 19:59 
GeneralGraphical XPath Queries Pin
chetmurphy9-Dec-03 19:37
memberchetmurphy9-Dec-03 19:37 
GeneralRe: Graphical XPath Queries Pin
Marc Brooks29-Jan-04 9:48
memberMarc Brooks29-Jan-04 9:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01 | 2.8.190214.1 | Last Updated 2 Dec 2003
Article Copyright 2003 by
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid