Hi so i have a little problem i have an xml file i need to read all the data from but i am not good with xml
i have google it and found out ways to get normal xml files but the thing is i dont know how to go about getting the xml file i need i will place a small copy of it below
<items>
<batch>
<id>1</id>
<subatch>
<tracking>110f6ty</tracking>
<name>toysrus-package-110f6ty</name>
<location>glasgow</location>
</subatch>
<subatch>
<tracking>110f6ty</tracking>
<name>toysrus-package-110f6ty</name>
<location>glasgow</location>
</subatch>
</batch>
<batch>
<id>2</id>
<subatch>
<tracking>110f6ty</tracking>
<name>toysrus-package-110f6ty</name>
<location>glasgow</location>
</subatch>
<subatch>
<tracking>110f6ty</tracking>
<name>toysrus-package-110f6ty</name>
<location>glasgow</location>
</subatch>
</batch>
</items>
How would i go about getting eatch "Batch" by its id then then getting each "Subatch" inside this batch and then eching out the contents of each "Subatch" in the following format
tracking -> name -> location
thanks for any help and i am sorry if there are spelling mistakes i suffer from dyslexia