Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Does XPath text() return CDATA SECTION?

Reply
Thread Tools

Does XPath text() return CDATA SECTION?

 
 
Tak Sze
Guest
Posts: n/a
 
      04-29-2004
If I have the following XML file,

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

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

- Tak Sze
 
Reply With Quote
 
 
 
 
Richard Tobin
Guest
Posts: n/a
 
      04-30-2004
In article <(E-Mail Removed) >,
Tak Sze <(E-Mail Removed)> 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

 
Reply With Quote
 
 
 
 
Patrick TJ McPhee
Guest
Posts: n/a
 
      04-30-2004
In article <(E-Mail Removed) >,
Tak Sze <(E-Mail Removed)> wrote:
% If I have the following XML file,
%
% <test><![CDATA[text]]></test>
%
% does /*/text() returns "text"?

Yes.


--

Patrick TJ McPhee
East York Canada
http://www.velocityreviews.com/forums/(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I un-CDATA my CDATA section and elaborate a transformation for the contained data? troppfigo@excite.it XML 3 03-06-2006 03:01 AM
what value does lack of return or empty "return;" return Greenhorn C Programming 15 03-06-2005 08:19 PM
Extracting CDATA Text without CDATA Tags??? John Davison Java 1 07-06-2004 11:00 PM
How to detect CDATA in XPATH ? Nold Fuchs XML 2 10-30-2003 03:06 PM
XPath that does not include other XPath Anna XML 0 07-31-2003 07:55 AM



Advertisments