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