XML Tool

Just Curious

Usenet Archive
Joined
Nov 14, 2001
Messages
8
Reaction score
0
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
 

Edwin Dankert

Usenet Archive
Joined
Nov 20, 2002
Messages
30
Reaction score
0
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. M. Sperberg-McQueen

Usenet Archive
Joined
Jul 2, 2003
Messages
95
Reaction score
0
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
 

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
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top