Easy Xpath?

Is there an application where you can just select an XML element and have an application return the full xpath to that element?

Not that I know of. However, there are a few applications around that will let you supply an XML file, let you enter an XPath string and then show you which elements match.

XPath isn't that difficult tbh. Any particular problem you're struggling with?
 
Hey,

I've been using XMLSpy and I can get to an element (within a SOAP body) however the XPath contains an X namespace (X:GetValueForExample) which I cannot get around.
 
you need to use the local-name() function if I remember correctly, it then ignores any prefixes and just matched to the element name

look it up on google or w3schools
 
if you are using a .net programming language (and i assume java will have something similar) just create a xml namespace manager and drop in the prefix.
 
Back
Top Bottom