function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Brad007Brad007 

XmlStreamReader to parse a Xml string

Hi, My Xml string which is returned from a webservice has the following few and the xml looks like this. I have been using XmlStream reader class to parse and i am unsuccessful . I need to get theese values updated to a custom object fields. Any help would be greatly appreciated.

 

Xmlstring = '<APFilesData>

<APFiles>

 <Id>a0B40000001xxxxxxx</Id>

<APID>0034000000Uxxxxxx</APID>

<Filepath>//Bait/Applications/AP Applications/AP0902905.Botia_Diaz/Photos/Photo1.jpg</Filepath></APFiles>

<APFiles>

<Id>a0B400000xxxxxxxx</Id>

<APID>0034000000xxxx</APID>

<Filepath>//Bait/Applications/AP Applications/AP0902905.Botia_Diaz/Photos/Photo2.jpg</Filepath></APFiles>

<APFiles>

<Id>a0B40000001xxxxx</Id>

<APID>0034000000Ulxxx</APID>

<Filepath>//Bait/Applications/AP Applications/AP0902905.Botia_Diaz/Photos/Photo3.jpg</Filepath></APFiles>

<APFiles>

<Id>a0B40000xxxxxx</Id>

<APID>0034000000Uxxx</APID>

<Filepath>//Bait/Applications/AP Applications/AP0902905.Botia_Diaz/Photos/Photo4.jpg</Filepath>    </APFiles>

                   </APFilesData>';

 

Thank you,