-
Why?? If my XML document looks like (just an example)...
< parent name="name" >
< child name="child" >
< /parent >
and my flash script looks like....
parentXML = new XML();
parentXML.onLoad = loaded;
parentXML.load("document.xml");
function loaded() {
parentNameX = parentXML.firstChild;
parentName = parentNameX.attributes.name;
}
stop ();
The the name attribute of the parent node is successfully loaded into the variable parentName. But if my XML document looks like...
< ?xml version="1.0" encoding="utf-8" ? >
< parent name="name" >
< child name="child" >
< /parent >
the attribute isn't loaded into the variable? And how do I load the child attributes into variables? I can't seem to get this. Any help would be much appreciated!
thx,
Paul
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|