ok, been banging my head against a wall for ages on this one.
These lines of code work:
menu_root = XPath.selectNodes(this, "root/menu/item/@name");
trace('menu_root: ' + menu_root);
These don't:
perm_items = Xpath.selectNodes(this, "root/perm/item/@name");
trace('perm_items: ' + perm_items);
The trace returns undefined.
Here is the XML, trimmed down to the vitals:
<root>
<menu>
<item name="Profiles" colour="0x73556b">
<item name="The Salon" type="content" colour="0x7797ac"
height="400" filename="profiles-the-salon"/>
<item name="Meet Michael Van Clarke" type="content"
colour="0x7797ac" height="400" filename="profiles-mvc"/>
<item name="Team Profiles" />
<item name="Testimonials" type="content" height="400"
colour="0x7797ac" />
</item>
<item name="Book Online" colour="0x735555">
<item name="Booking Form" />
</item>
etc etc
</menu>
<perm>
<item name="Special Offers" />
<item name="Book an Appointment" />
<item name="Register for Newsletter" />
</perm>
</root>
Anyone have any ideas what the problem is?
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com