[phpXML] Re: [phpXML] Re: [phpXML] Shortcut to attributes.

2001-09-28 Thread tim
> >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

[phpXML] Re: [phpXML] Shortcut to attributes.

2001-09-28 Thread nigelswinson
> I am looking for an alternative to the following syntax > > $courts = $xml->evaluate($result . '/COURTS_SEARCHED/COURT'); > foreach ($courts as $court): > $courtinfo = $xml->get_attributes($court); >print $courtinfo['NAME']; > endforeach; > > is there a shorter w

[phpXML] Shortcut to attributes.

2001-09-28 Thread tim
I am looking for an alternative to the following syntax $courts = $xml->evaluate($result . '/COURTS_SEARCHED/COURT'); foreach ($courts as $court): $courtinfo = $xml->get_attributes($court); print $courtinfo['NAME']; endforeach; is there a shorter way of getting