Solved

Tool to give me XPath expressions to nodes in XML document

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

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…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

759 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