all groups > dotnet xml > february 2005 >
You're in the

dotnet xml

group:

XPath



XPath Chris Fink
2/14/2005 12:15:06 PM
dotnet xml: What is a valid XPath Statement to retrieve the data found within the CDATA
tag below?
Using the XPath statement "/oid" returns ""
<oid><![CDATA[66257512]]></oid>

Re: XPath Oleg Tkachenko [MVP]
2/15/2005 2:34:47 PM
[quoted text, click to view]

There is no CDATA in XPath data model. XPath treats CDATA as ordinary
text node. /oid should work, as well as /oid/text()

--
Oleg Tkachenko [XML MVP, MCP]
AddThis Social Bookmark Button