I'm using Orchestra to parse this XML bellow
$user = $xml->parse([
'IdList' => ['uses' => 'IdList.Id[Id]'],
]);
The result is without values but it gives the exact number of IDs when I count the output array elements
Array
(
[IdList] => Array
(
[0] => Array
(
[Id] =>
)
[1] => Array
(
[Id] =>
)
here is the XML source :
<eSearchResult>
<Count>113</Count>
<RetMax>20</RetMax>
<RetStart>0</RetStart>
<IdList>
<Id>28924228</Id>
<Id>28894223</Id>
<Id>26474159</Id>
</IdList>
<TranslationSet/>
<TranslationStack>
<TermSet>
<Term>ABCB4[Title]</Term>
<Field>Title</Field>
<Count>113</Count>
<Explode>N</Explode>
</TermSet>
<OP>GROUP</OP>
</TranslationStack>
<QueryTranslation>ABCB4[Title]</QueryTranslation>
</eSearchResul>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire