Hi, I am creating template that use xml to populate text fields but need to be updated with simplified chinese.

When I fill the xml nodes with western Latin text all works correct.
But when changing xml as mentioned below I get the following error:

Error #1088: The markup in the document following the root element must be well-formed.

This indicates that the xml is not well formed.

I am on XP machine. Installed the language set and updated the region settings. In Flash I embedded the Symplified Chinese glyphs. I installed BabelPad text editor since it seems to be the only one able to handle chinese characters. (Tried TextPad and WordPad but cannot save as Unicode). In the xml I updated the:

<?xml version="1.0" encoding="UTF-8"?>

to

<?xml version="1.0" encoding="GB2312"?>

Then save as: GB 18030: Extended Chinese (Unicode - mapped superset of GB2312), I also tried saving as Unicode with no success.

Please any help with sorting this would be greatly appreciated.
Thanks


XML:

<?xml version="1.0" encoding="GB2312"?>
<main >

<tab>
<tabname>谔谔</tabname>
</tab>

</main>

Actionscript Code:
var thepath:String;
var tempString:String;
tempString=loaderInfo.loaderURL;
thepath=tempString.substring(0, tempString.lastIndexOf("/"))+"/";
var myXML:XML;
var xmlLoader:URLLoader = new URLLoader();

xmlLoader.load(new URLRequest(thepath + "xml/pl01.xml"));
xmlLoader.addEventListener(Event.COMPLETE, processXML);

function processXML(e:Event):void {
    xmlLoader.removeEventListener(Event.COMPLETE, processXML);
    myXML = new XML(e.target.data);
    myXML.ignoreWhite=true;
    xmlLoader.load(new URLRequest(thepath + "xml/pl01.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, processXML);

    function processXML(e:Event):void {
        xmlLoader.removeEventListener(Event.COMPLETE, processXML);
        myXML = new XML(e.target.data);
        myXML.ignoreWhite=true;
        menuBuild();
    }
}

function menuBuild() {
    for (var i:uint=0; i<myXML.*.length()-2; i++) {
        myText.text=myXML.tab[0].tabname;
    }
}