[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Using XPath to refer to a tag value which itself is XM

Subject: Using XPath to refer to a tag value which itself is XML content
From: "PATIL Arvind" <Arvind_PATIL@xxxxxxxxxxxxxxxxx>
Date: Tue, 5 Jan 2010 17:12:17 +0900
 Using XPath to refer to a tag value which itself is XM
Hi,
I have a XML file content which is added as the value of XML tag.

For eg:
In this xml snippet, value of tag <RawData> is xml content itself.

<root>
<OID>27696.16415.10544.53961</OID>
<Rawdata>
<report><primaryImages><primaryImage><ObjectName>auto_21259132174955</ObjectN
ame></primaryImage></primaryImages></report>
</Rawdata>
</root>

Now, if I use XPath to navigate through this XML content, it does not display
anything.
...
   <xsl:value-of
select="Rawdata/report/primaryImages/primaryImage/ObjectName"/>
...

But, if I use below XPath, it gives the entire XML content.
...
   <xsl:value-of select="Rawdata"/>
...

How should I add such value so that Xpath can consider it as XML?

Thanks
arvind

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.