tags:

views:

24

answers:

1

How do you add an XML declaration - < ?xml version="1.0" encoding="UTF-8"? > - to a Flex XML object? The same thing you could do with the old XML - new XMLDocument class and the xmlDecl property.

A: 

Seems that new XML class always ignores this processing instruction.

If it's true then you need to add <?xml version="1.0" encoding="UTF-8"?> string manually when it is outputted to a file or sent to the server.

Maxim Kachurovskiy