R
ranch99ranch99
I always see ![CDATA[ in XML page, what does this mean?
I always see ![CDATA[ in XML page, what does this mean?
Joseph Kesselman said:What it really means is that whoever wrote the XML file was sloppy.
CDATA Sections are an ugly cluge intended to make manually
copy-and-pasting non-XML data into an XML file a little easier. The
proper solution is to use XML-aware tools, which will escape individual
characters when necessarily (and only when necessary).
Richard said:However, it also makes the data more human-readable, which seems very
desirable when, for example, including a computer program in an XML
document.
[/QUOTE]However, it also makes the data more human-readable, which seems very
desirable when, for example, including a computer program in an XML
document.
Only if you're editing the document as XML source.
Escaping choices should be purely
an artifact of the datastream rather than of the document semantics,
Yes...
and the user shouldn't have to look at them.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.