Click here to Skip to main content
11,632,253 members (71,177 online)
Click here to Skip to main content

Debugging XPath Queries

, 1 Dec 2003 82.1K 1.8K 27
Rate this:
Please Sign up or sign in to vote.
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 does 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 start 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

Share

About the Author

goerge@Mailinator.com
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 22:24
memberMikeEast16-Jan-08 22:24 
Generalin VB.NET Pin
y2kvirus22-Aug-05 12:50
membery2kvirus22-Aug-05 12:50 
GeneralWrong topic Pin
alerma14-Dec-03 21:48
memberalerma14-Dec-03 21:48 
GeneralGood job Pin
Bill Seddon9-Dec-03 21:21
memberBill Seddon9-Dec-03 21:21 
GeneralRe: Good job Pin
Marc Brooks29-Jan-04 8:45
memberMarc Brooks29-Jan-04 8:45 
GeneralRe: Good job Pin
Bill Seddon29-Jan-04 8:55
memberBill Seddon29-Jan-04 8:55 
AnswerRe: Good job Pin
Marc Brooks10-Oct-06 5:59
memberMarc Brooks10-Oct-06 5:59 
GeneralGood work, but... Pin
Christoph Lederer9-Dec-03 21:19
memberChristoph Lederer9-Dec-03 21:19 
Hi,

that's exactly that what I searched sometimes. I don't like these fat java-things and XMLSpy is too expensive just for evaluate the XPaths.

Do you think it's possible for you to upload the binaries for that project? I'm working here in germany for a customer and I don't have C#. Would be great!!!

Thanx...
ledererc!

____________________________
Rule #1: code doesn't lie!
Rule #2: code never lies!
Rule #3: if the docs are incorrect -> take a look at the code!
GeneralRe: Good work, but... Pin
Edneeis3-Feb-04 18:59
memberEdneeis3-Feb-04 18:59 
GeneralGraphical XPath Queries Pin
chetmurphy9-Dec-03 18:37
memberchetmurphy9-Dec-03 18:37 
GeneralRe: Graphical XPath Queries Pin
Marc Brooks29-Jan-04 8:48
memberMarc Brooks29-Jan-04 8:48 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150728.1 | Last Updated 2 Dec 2003
Article Copyright 2003 by goerge@Mailinator.com
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid