Question
XML Processing Instructions
Hi,
I have two questions about how the XML class in AS3 works.First, does the XML class care about the initial processing instruction when created from a string like this?:
<?xml version="1.0" encoding="UTF-8" ?> <painting> <img src="madonna.jpg" alt='Foligno Madonna, by Raphael'/> <caption>This is Raphael's "Foligno" Madonna, painted in <date>1511</date>–<date>1512</date>. </caption> </painting>
Second, how can I add that procession instruction to an XML object that I am working with so that toXMLString() returns a string that looks like the above XML? (So that it includes the processing instruction.)