[phpXML] Re: [phpXML] Re: [phpXML] Shortcut to attributes.
Brought to you by:
bs_php,
nigelswinson
From: <ti...@di...> - 2001-10-08 13:27:46
|
> >Ultimately there should be some kind of solution where you call getData() >instead of getAttribute() with evaluate() returning an array of You know intuitively what I want to do is this. $courts = $xml->evaluate($result . '/COURTS_SEARCHED/COURT'); foreach ($courts as $court): print $court->attributes['NAME']; endforeach; I tried to make that work using the XML-DOM functions in php but something seems to be broken in the xpath function. I must say php is behind all other languages when it comes to XML and SOAP functions. I hope they have solid support with the next version. ---------------------------------------------- Tim Uckun Mobile Intelligence Unit. ---------------------------------------------- "There are some who call me TIM?" ---------------------------------------------- -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |