Solved

Tool to give me XPath expressions to nodes in XML document

Posted on 2010-09-16
5
427 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
  • 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VB.NET and XML parsing 6 55
Help with SimpleXML charts with PHP 4 63
C# SQL BULK INSERT CLASS 5 34
Test ddwrt:UserLookup 1 20
The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now