469,291 Members | 1,862 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,291 developers. It's quick & easy.

Does XPath text() return CDATA SECTION?

If I have the following XML file,

<test><![CDATA[text]]></test>

does /*/text() returns "text"?

- Tak Sze
Jul 20 '05 #1
2 11152
In article <68**************************@posting.google.com >,
Tak Sze <ta*****@tarari.com> wrote:
<test><![CDATA[text]]></test>

does /*/text() returns "text"?


Yes. From the point of view of the XPath data model, the
document is identical to <test>text</test>.

-- Richard

Jul 20 '05 #2
In article <68**************************@posting.google.com >,
Tak Sze <ta*****@tarari.com> wrote:
% If I have the following XML file,
%
% <test><![CDATA[text]]></test>
%
% does /*/text() returns "text"?

Yes.
--

Patrick TJ McPhee
East York Canada
pt**@interlog.com
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Nold Fuchs | last post: by
8 posts views Thread by Irvin | last post: by
8 posts views Thread by Lawrence Oluyede | last post: by
1 post views Thread by Chris Fink | last post: by
15 posts views Thread by aidy | last post: by
6 posts views Thread by test9991014 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.