i don't have actual xml here at work but here's an idea of the structure:
Code:
<inc>
< menu title="contents" >
< submenu title="bio" over="see my bio" click="actionscript:bio" / >
< submenu title="portfolio" over="see my portfolio" click="actionscript:portfolio" / >
< submenu title="links" over="places to visit" click="actionscript:links" / >
< /menu >
< content >
< bio title="my bio" >
< p >blah blah blah< /p >
< p >blah blah blah< /p >
< /bio >
< portfolio >
//get the picture
< /content >
< /inc >
Then the actionscript is something like:
Code:
myXML = new XML ();
myXML.load ("myXML.xml");
myXML.onLoad = function (success){
myXML = myXML.parseXML;
//in here at this stage i just started trying a whole bunch of trace functions to see how to get to the various nodes when i found out i couldn't access any of them...
}
I'm wondering if its related to the fact that i'm writing the xml in dreamweaver as xml and it is automatically tiered with whitespace. but even when i put an ignoreWhiteSpace in there it gives me nothing.