XML ![CDATA question
Posted: Mon Oct 01, 2007 11:14 am
We have a requirement to output XML in character only format as opposed to HTML markup e.g.
1) <legal_name>G&M NV</legal_name> instead of
2) <legal_name>G&M NV</legal_name>
Our intention is to use a CDATA marked section to display the text verbatim. So the output looks something like:
3) <legal_name><![CDATA[G&M NV]]></legal_name>
Question is, how do I generate 3) above?
P.S. We are currently using <?xml version="1.0" encoding="UTF-8"?>
1) <legal_name>G&M NV</legal_name> instead of
2) <legal_name>G&M NV</legal_name>
Our intention is to use a CDATA marked section to display the text verbatim. So the output looks something like:
3) <legal_name><![CDATA[G&M NV]]></legal_name>
Question is, how do I generate 3) above?
P.S. We are currently using <?xml version="1.0" encoding="UTF-8"?>