![]() |
![]() | ![]() | ![]() | 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 CharactersTo: NULL Date: 6/3/2006 1:21:00 AM sudhakarnraju@g... wrote: > 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. Either way will do. If you use attributes, you only need to use < and & (the greater-than sign is not markup here, just text). Read the FAQ on CDATA: http://xml.silmaril.ie/authors/cdata/ ///Peter | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
