Click here to Skip to main content
Licence 
First Posted 1 Dec 2003
Views 74,110
Downloads 1,576
Bookmarked 27 times

Debugging XPath Queries

By goerge@Mailinator.com | 1 Dec 2003
An application to visualize XPath Queries
1 vote, 7.1%
1
2 votes, 14.3%
2
3 votes, 21.4%
3
3 votes, 21.4%
4
5 votes, 35.7%
5
4.10/5 - 14 votes
1 removed
μ 3.40, σa 2.34 [?]

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

About the Author

goerge@Mailinator.com



United States United States

Member


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralGenerating xpath add-on (quick and dirty) [modified] PinmemberMikeEast23:24 16 Jan '08  
Generalin VB.NET Pinmembery2kvirus13:50 22 Aug '05  
GeneralWrong topic Pinmemberalerma22:48 14 Dec '03  
GeneralGood job PinmemberBill Seddon22:21 9 Dec '03  
GeneralRe: Good job PinmemberMarc Brooks9:45 29 Jan '04  
GeneralRe: Good job PinmemberBill Seddon9:55 29 Jan '04  
AnswerRe: Good job PinmemberMarc Brooks6:59 10 Oct '06  
GeneralGood work, but... PinmemberChristoph Lederer22:19 9 Dec '03  
GeneralRe: Good work, but... PinmemberEdneeis19:59 3 Feb '04  
GeneralGraphical XPath Queries Pinmemberchetmurphy19:37 9 Dec '03  
GeneralRe: Graphical XPath Queries PinmemberMarc Brooks9:48 29 Jan '04  

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.

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