![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - CDATA vs Escaping XML Characters >Thread Next - Re: CDATA vs Escaping XML Characters Re: CDATA vs Escaping XML CharactersTo: NULL Date: 6/2/2006 9:54:00 AM sudhakarnraju@g... schrieb: > Hi, > There's a need to generate xml documents in our project and in one of > the node, it can contain some snippets of code which can have <, > and > other xml symbols > e.g > <Code> > If i > 100 && j < 200 > ... > End If > </Code> > > Question is: Should I XMLEncode the node text ( <, > etc) OR > should I put them in CDATA attrib. > > Is there a difference between usage of the above 2 options. I beleive > they are part of same XML standard and are interoperable. Please confirm Confirmed. Hint: unless human readability of the XML is a major concern, I'd avoid CDATA altogether. It's just not needed and adds potential complexity (escaping of "]]>"...). | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
