September 2003
Intermediate to advanced
336 pages
7h 20m
English
CDATA sections are probably the most frequently abused drugs in the XML pharmacy. The normal reason for this abuse is to embed non-well-formed HTML inside an XML document. For example, the description element in a catalog entry might contain an entire web page for a product.
<Vehicle> <price>30000</price> <inStock>4</inStock> <color>black</color> <description><![CDATA[ <html> <title>The G2 SUV</title> <body> <img src=g2suv.jpg height=100 width=100> The G2 SUV is one of our best-selling models. <p> It's built on a truck base for all the stability of a pickup driving down a bumpy country road. <p> It gets an astonishing eight miles to the liter. <p> <hr> <a href=G3SUV.html>Next Car</a> </body> </HTML> ]]></description> </Vehicle> ...
Read now
Unlock full access