I am trying to parse a url that contains a xml file. I have tried many methods but I cannot get my head around it. Here is the xml file:
<xml>
<jobs>
<id>6</id>
<type>0</type>
<user_id>9</user_id>
<name>Steve Jobs</name>
<profilepic>
http://ift.tt/1wlTia7 http://ift.tt/1mAUVr5
</profilepic>
<bg>
http://ift.tt/1pAepQL
</bg>
<em>1</em>
<facebook>stevejobs</facebook>
<twitter>LegendSteveJobs</twitter>
<phone/>
<email/>
</jobs>
</xml>
It would be best if I could extract all of these into an array with the format of "type:data". Thanks for your help.
No comments:
Post a Comment