Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
01-05-2004, 06:29 AM #1
- Join Date
- Dec 2003
- Thanked 0 Times in 0 Posts
Escaping special characters in XML
I want to have special characters in elements so rather than using htmlentities(), I'm using <![CDATA[ ]]>. An example would be the following:
<DATA> <REPORT_DATE><![CDATA[ 11-Nov-2003 ]car & ><<><>< < ]]></REPORT_DATE> <IP_RECORD> <ADDRESS>184.108.40.206</ADDRESS> <HOSTNAME>dialup-220.127.116.11.Dial1.NewYork1.Level3.net</HOSTNAME> <OWNER>Broomfield CO 80021 United States</OWNER> </IP_RECORD> <IP_RECORD> <ADDRESS>18.104.22.168</ADDRESS> <OWNER>VA 20166 United States</OWNER> </IP_RECORD> </DATA>
Any thoughts? Thanks.