I am trying to get a list of numeric IDs from an XML file. It’s formatted like this.
<Count>Number of things found</Count>
<RetMax>Number of things asked for</RetMax>
<RetStart>0</RetStart>
<IdList>
<Id>ID#</Id>
<Id>ID#</Id>
<Id>ID#</Id>
<Id>ID#</Id>
<Id>ID#</Id>
<Id>ID#</Id>
<Id>ID#</Id>...
The file is generated using Esearch on the pubmed database. Is there a way using php to only get the text that is between the ‘count’,’RetMax’,and’ID’ tags and have it differentiate between them? Preferably in array format.
http://ka.lpe.sh/2012/07/26/php-convert-xml-to-json-to-array-in-an-easy-way/