I am trying to chop XML data into usable strings to reuse them later on in my script.
I am receiving the data via a Curl request and his goes great. now chopping the data kills me..
this a part of the XML I am receiving (the whole data part is about 90 lines)
<professions>
<skill key="IT Specialist" maxage="40" group="IT" worked="5"/>
<skill key="Assistant" maxage="35" group="Office" worked="5"/>
</professions>
Now of course I could make a function filtering data etc, but I just feel there is a different way to get the job done. The XML is loaded in a $var.
Any help getting this done better than reading the string etc etc would be helpfull.