XML Tool

J

Just Curious

Hello,

I am doing some XSLT tranformations. I have a pretty complicated XML
document with high level of nesting. I am looking for a tool that
gives me the "hierarchial path" to the element I select for example if
in the xml below - I select <City>XY</City> - I want to get
"Address/Address/City"

<Addresses>
<Address>
<City>XY</City>
</Address>
</Addresses>

Are there any tools that can achieve this?

Thank you.

AZXML
 
E

Edwin Dankert

You could use our tool, the 'Exchanger XML Editor' for this. Our editor will
give you the XPath to the current selected element in either Viewer, Editor
or Outliner mode.

http://www.exchangerxml.com/

Regards,
Edwin Dankert
Cladonia Ltd.
http://www.cladonia.com/


in message
Hello,

I am doing some XSLT tranformations. I have a pretty complicated XML
document with high level of nesting. I am looking for a tool that
gives me the "hierarchial path" to the element I select for example if
in the xml below - I select <City>XY</City> - I want to get
"Address/Address/City"

<Addresses>
<Address>
<City>XY</City>
</Address>
</Addresses>

Are there any tools that can achieve this?

Thank you.

AZXML
 
C

C. M. Sperberg-McQueen

Hello,

I am doing some XSLT tranformations. I have a pretty complicated XML
document with high level of nesting. I am looking for a tool that
gives me the "hierarchial path" to the element I select for example if
in the xml below - I select <City>XY</City> - I want to get
"Address/Address/City"

<Addresses>
<Address>
<City>XY</City>
</Address>
</Addresses>

Are there any tools that can achieve this?

An XSLT template of the following form will return
what you want, which is what old SGML hands still call
the fully-qualified generic identifier (FQGI).

<xsl:template match="*" mode="showpath">
<xsl:apply-templates select="parent::*" mode="showpath"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="name()"/>
</xsl:template>

-C. M. Sperberg-McQueen
 
J

Just Curious

Thank you all. You have been both very helpful! It is exactly what I needed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top