Thursday, January 14, 2010

Dealing with data in XML

Dealing with data in XML: "Normally, when you store data in an XML file, you need to be careful about encoding it in a way that's safe and won't confuse the XML parser. The special XML markup characters need to be translated into entities, which can be cumbersome if you're writing the XML yourself in a text editor. To avoid this, you can use the CDATA section to store the data directly without having to worry about encoding. This article will tell you about XML CDATA sections and show you how to use them when you need to ship marked-up data along with your XML file."