Alternative to CDATA

gage

New Member
I have a large XML file, in which every nodes requires a CDATA tag.\[code\]<root> <a> <id>my_id</id> <tr><![CDATA[This is the data]]></tr> </a> <b> ... </b></root>\[/code\]How to avoid to place CDATA in every node? Does DTD or Schema provide a method for this?The reason for this requirement comes from a in-house framework, for localization purposes. All tags which contain the messages are to be CDATA'd, because very often they contain special characters. The XML I wrote was just for demonstration purposes and does not represent the actual data that I handle.
 
Back
Top