473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

CDATA against parsers!

Dököll
2,364 Expert 2GB
Hey Gang!

Hoping to get a better understanding of CDATA and what it really means:

[HTML]

Set cd = dom.createCDATASection("<some mark-up text or what ever you feel like>")

[/HTML]

So far what I gather is this is used for data or fields we do not need parsed.

Does it mean whatever is included within CDATA, if say "6464566546lklkjkj;ljlhjfhdkgfsfkdshf", it will not be touched?


Or does it have to do with fields added on one line:

<first>Pierre</first><second>Paul</second>

Being be parsed as:

<first>Pierre</first>
<second>Paul</second>


Is CDATA going up against parsers who rearrange stuff?

Can you give me an example why CDATA may be needed?

Thanks in advance for your help?

Dököll
Dec 1 '07 #1
1 1146
Dököll
2,364 Expert 2GB
Hey Gang!

Hoping to get a better understanding of CDATA and what it really means:

[HTML]

Set cd = dom.createCDATASection("<some mark-up text or what ever you feel like>")

[/HTML]

So far what I gather is this is used for data or fields we do not need parsed.

Does it mean whatever is included within CDATA, if say "6464566546lklkjkj;ljlhjfhdkgfsfkdshf", it will not be touched?


Or does it have to do with fields added on one line:

<first>Pierre</first><second>Paul</second>

Being be parsed as:

<first>Pierre</first>
<second>Paul</second>


Is CDATA going up against parsers who rearrange stuff?

Can you give me an example why CDATA may be needed?

Thanks in advance for your help?

Dököll

I think I'm okay, Googled it, still not clear but I get a sense of it. Thanks!
Dec 3 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: wenke | last post by:
Hi, I am using the following code (see below) from php.net (http://www.php.net/manual/en/ref.xml.php, example 1) to parse an XML file (encoded in UTF-8). I changed the code slightly so that the...
0
by: bugbear | last post by:
Subject pretty much says it all. I'd like to parse XML (duh!) using Xerces (because its fast, and reliable, and comprehensive, and supports lots of features). I'd like to conform to standards...
4
by: alainpoint | last post by:
I am experimenting with ElementTree and i came accross some (apparently) weird behaviour. I would expect a piece of XML to be read, parsed and written back without corruption (except for the...
2
by: X. Lee | last post by:
I am creating an xml schema, and I want one of the elements to include html text. Therefore, I want to make that element a CDATA elements so that it can accept html tags as part of it's value. ...
3
by: CarlosRivera | last post by:
I am using apache xerces J 2.5.0. I have \r\n feed combinations in the CDATA sections that get converted to \n (or rather \r gets lost. I am using sax parsing. I can see in the buffer that is...
6
by: Cade Perkins | last post by:
How can the CDATA ending delimiter "]]>" be represented within a CDATA section itself? Consider an XML document that is intended to contain an embedded, uninterpreted XML example. Generally,...
7
by: Vincent Lefevre | last post by:
I'd like to generate something like that: <style type="text/css">/*<!]></style> I thought the following would work, but it doesn't (I tried with xsltproc). <?xml version="1.0"?> ...
3
by: Dilip | last post by:
I have been out of the XML world for a while and have sort of forgotten the exact difference between: <Symbol><!]></Symbol> and just: <Symbol>IBM</Symbol> Can anyone tell me why one is...
12
by: Peter Michaux | last post by:
Hi, I am experimenting with some of the Ruby on Rails JavaScript generators and see something I haven't before. Maybe it is worthwhile? In the page below the script is enclosed in //<!]> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.