Jump to content

Split XML String


mattspriggs28

Recommended Posts

Hi all,

 

I have the following xml string that I would like to split into an array:

 

<z:row origin_postcode="PE235LP" destination_postcode="PE216EU" distance="14.35" id="86" description="This is a description here" />

 

Now, I can easily split this string by each occurence of a space to get each element, but how can I do this without splitting the string when spaces occur within the description element???

Link to comment
https://forums.phpfreaks.com/topic/170622-split-xml-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.