OK, I get it.
It's definitively a problem of reference.

In order to filter an already filtered XMLNode, you've got to clone it before.
XMLNode has such a function, cloneNode.

So your example should work like this :

function parseXML(xmlData) {
        countriesList = XPath.selectNodes(xmlData, "/map/country");
handleCountry(countriesList[0].cloneNode (true)); // Note the cloning process
}

function handleCountry(country) {
        countryName = XPath.selectNodes(country, "/country/name");
        trace(countryName);     // Should work.
}

Cheers.

-----------
erixtekila
http://blog.v-i-a.net/

_______________________________________________
[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

Reply via email to