Creating XML with Code - 1086: Syntax error for Version
Hi All,
I am using AS3 CS6 Flash Pro.
I am trying to create a XML file that I can append child data from other similar XML files. It is the XLIFF format that the Strings Panel uses to manage translation data.
The file is by design backward compatiable to AS2. I don't really want to import the XML as a file.
var TEMP:XML = <?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.0" xml:lang="en">
<file datatype="plaintext" original="ZMP_en.fla" source-language="EN">
<header></header>
<body>
</body>
</file></xliff>
trace(TEMP);
1086: syntax error expecting semicolon before version -- for line 2 of code
I will be appending the other XML snippets as children of <body>.
Thanks
