parsing xml the right way

From: Date: Fri, 02 Apr 2004 07:45:30 +0000
Subject: parsing xml the right way
Groups: php.general 
Request: Send a blank email to php-general+get-182100@lists.php.net to get a copy of this message
Hi there, I think I am parsing xml documents the wrong way. There must be a better way to access the results laterone like objects. For example I would like to search in a free form for a city name inside an xml document and php should return the country name and continent. This is the xml structure: <Country size="4"> <countryName>Andorra</countryName> <countryCode>AD</countryCode> <countryContinent>Europe</countryContinent> <Cities size="4"> <city>Encamp</city> <city>Escaldes-Engordany</city> <city>Ordino</city> <city>Soldeu</city> </Cities> </Country> Has anybody a good hint for me? Thanx in advance, Merlin

« previous php.general (#182100) next »