Somebody told me in the Flash forum I can't do this because its is not valid XML. Is it?
After going through a number of to me partiallt useful tutorials a was able to access the text 'Noth America", "Europe", etc in the attached XML document.
text=document.firstchild.childNodes[0].firstChild.nodeValue;
---result -->text="North America"
However, I HAVE no clue how to retrieve/refer to the second level 'United States''Canada''France' etc. What is the node sintaxis??
Can anybody help???
---------------------------------------------------------------
DOCUMENT
------------------------------------------------------------------
PHP Code:
<?xml version="1.0"?>
<NEWS>
<CONTINENT> North America
<COUNTRY>United States</COUNTRY>
<COUNTRY>Canada</COUNTRY>
</CONTINENT>
<CONTINENT> Europe
<COUNTRY>Great Britain</COUNTRY>
<COUNTRY>France</COUNTRY>
<COUNTRY>Italy</COUNTRY>
</CONTINENT>
<CONTINENT> Asia
<COUNTRY>Japan</COUNTRY>
<COUNTRY>China</COUNTRY>
<COUNTRY>India</COUNTRY>
</CONTINENT>
</NEWS>
</XML>