Solved

Tool to give me XPath expressions to nodes in XML document

Posted on 2010-09-16
5
468 Views
Last Modified: 2012-05-10
Hi!

My current work involves generating XPath expressions to find nodes in a lot of rather complex XML documents. To do this "by hand" is time-consuming and error-prone.

I am looking for a tool that could do this:
Give an XML document like this:

<?xml version="1.0" encoding="utf-8"?>
<root>
  <items>
         <item id ="1">
         </item>
  </items>
</root>

I should be able to right-click (or similar) on the <item> element, and the tool would product the right XPath-expression ("/root/items/item")

The tool needs to run on Windows, preferably freeware and without Java runtime requirements.
0
Comment
Question by:gunman69
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 5

Expert Comment

by:sscotti
ID: 33697158
Not sure what you are looking for:

There is a commercial product with a reasonably priced academic license here:

http://www.oxygenxml.com/

There is a firefox extension that might do what you want as well.  Free, requires DOM Inspector:

https://addons.mozilla.org/en-US/firefox/addon/1192/
0
 

Author Comment

by:gunman69
ID: 33698715
Let me know if and how I can be more specific about what I am looking for.
I knoiw there are tons of XML tools/editors out there, but I was hoping someone could point me to one to avoid having to install each and one of them until I find a tool that has this feature.

I'll try OxygenXml though.
/F
0
 

Author Comment

by:gunman69
ID: 33712309
Couldn't find the feature in OxygenXml, but XML Spy has it. It is a little pricey, but I don't have time to look around for cheaper options.
0
 

Accepted Solution

by:
ee_auto earned 0 total points
ID: 34881976
Question PAQ'd and stored in the solution database.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question