Xml - Element or CDATA
-
If one of my Xml elements can potentially hold a large amount of data should I be using Element or CDATA. What is the difference between the two? As an aside this is my 100 post...yipee?
Everybody gotta be somebody
-
If one of my Xml elements can potentially hold a large amount of data should I be using Element or CDATA. What is the difference between the two? As an aside this is my 100 post...yipee?
Everybody gotta be somebody
Mike Hankey wrote:
should I be using Element or CDATA
Since a CDATA section is nested inside an element the question should be: Should I use a CDATA section or not.
Mike Hankey wrote:
What is the difference between the two?
A CDATA section is ignored by the parser but also applies some requirements on the data it holds. Take a look at this link XML CDATA[^].
Mike Hankey wrote:
As an aside this is my 100 post
Congratulation :)
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
Mike Hankey wrote:
should I be using Element or CDATA
Since a CDATA section is nested inside an element the question should be: Should I use a CDATA section or not.
Mike Hankey wrote:
What is the difference between the two?
A CDATA section is ignored by the parser but also applies some requirements on the data it holds. Take a look at this link XML CDATA[^].
Mike Hankey wrote:
As an aside this is my 100 post
Congratulation :)
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
Stefan, Thanks for the information. CData it is, because the information may contain <> and other chars that may offend the parser.
Stefan Troschuetz wrote:
Mike Hankey wrote: As an aside this is my 100 post Congratulation
I don't feel any different am I supposed to???:):)
Everybody gotta be somebody