472,353 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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 11235
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nold Fuchs | last post by:
Hi ! I need to isolate some nodes without CDATA inside, the problem is that I can not get an XPATH to differentiate simple text nodes and CDATA...
8
by: Irvin | last post by:
I am using an xml file to store data. I can get the data out now, but I have a problem with any field that needs text formatting such as bold,...
8
by: Lawrence Oluyede | last post by:
Is there a way to treat html tags like simple text? I explain myself, if I have a bunch of xml like <content type="application/xhtml+xml"...
1
by: Chris Fink | last post by:
What is a valid XPath Statement to retrieve the data found within the CDATA tag below? Using the XPath statement "/oid" returns "" <oid><!]></oid>
3
by: chrisjaycomer | last post by:
I have successfully setup numerous xmlpoke statements within an Nant script but this specific situation I cannot figure out. I am including ...
15
by: aidy | last post by:
Hi, Is it possible to retrieve CDATA Sections from an XML document? If so, could someone give me a syntax example? Cheers Aidy
5
by: dotnetnoob | last post by:
i got xml file that have <bac:BACnetDevicesand <bac:BACnetDevicetag how do you make a xpath query with that type of tags this is the query that i...
6
by: test9991014 | last post by:
While visiting the apple.com page, I noticed an unusual form behavior that seems pretty nice, but looking at the source (below) it is unclear how...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.