Click here to Skip to main content
Click here to Skip to main content

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

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.

Comments and Discussions

 
GeneralGenerating xpath add-on (quick and dirty) [modified] PinmemberMikeEast16-Jan-08 23:24 
Generalin VB.NET Pinmembery2kvirus22-Aug-05 13:50 
GeneralWrong topic Pinmemberalerma14-Dec-03 22:48 
GeneralGood job PinmemberBill Seddon9-Dec-03 22:21 
GeneralRe: Good job PinmemberMarc Brooks29-Jan-04 9:45 
GeneralRe: Good job PinmemberBill Seddon29-Jan-04 9:55 
AnswerRe: Good job PinmemberMarc Brooks10-Oct-06 6:59 
GeneralGood work, but... PinmemberChristoph Lederer9-Dec-03 22:19 
GeneralRe: Good work, but... PinmemberEdneeis3-Feb-04 19:59 
GeneralGraphical XPath Queries Pinmemberchetmurphy9-Dec-03 19:37 
GeneralRe: Graphical XPath Queries PinmemberMarc Brooks29-Jan-04 9: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
Web04 | 2.8.1411023.1 | Last Updated 2 Dec 2003
Article Copyright 2003 by goerge@Mailinator.com
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid