[thelist] Flash / XML
Anthony Baratta
Anthony at Baratta.com
Thu Apr 5 20:18:58 CDT 2001
FYI...
The XML Parser in Flash5 is "quirky".
Two big gotcha's I found:
One --
Make sure you use the onLoad statement when loading XML from a server or file:
e.g.
xml1 = new XML();
xml1.onLoad = myOnLoad;
xml1.load(".\\products.xml");
function myOnLoad (success) {
blah blah blah
}
Two --
The parse does not like having "returns" ANY where in the XML string. Its
will create a new node on the "tree" when it encounters a return.
e.g.
<tag1>blah</tag1>
<tag2>blah</tag2>
<tag3>blah</tag3>
<tag4>blah</tag4>
should be...
<tag1>blah</tag1><tag2>blah</tag2><tag3>blah</tag3><tag4>blah</tag4>
----
Anthony Baratta
President
Keyboard Jockeys
More information about the thelist
mailing list