Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Tool to give me XPath expressions to nodes in XML document

Posted on 2010-09-16
5
Medium Priority
?
477 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

704 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