Solved

Tool to give me XPath expressions to nodes in XML document

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

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, …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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