Hi,
I'm trying to read an XML by creating a Document with the DOM parser. I make some changes there and then write it back using the Transformer class. When this class writes the Document, the <Doctype ...> tag is appearing after the initial comment, but I want it before the comment as my Flex is throwing a SAXException because of that.
Original XML -
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE .....>
<!-- The comment is here>
Output -
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- The comment is here>
<!DOCTYPE .....>
Is there any way I can manually position the DOCTYPE?
Thanks
Kshitij