View Single Post
Old 04-29-2014, 05:17 AM  
georgeyw
58008 53773
 
georgeyw's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: Australia
Posts: 9,864
programmers - help with xml feed

So I am trying to read in an xml feed with php, however the feed has thrown me a bit of a curve ball.

It starts off as a normal xml feed, however mid way it changes and this is what is throwing me. How do I handle a feed that does the following : ?

PHP Code:
<element>
 <
item>
  <
itemid>
  </
itemid>
 </
item>
 <
item>
  <
itemid>
  </
itemid>
 </
item>
 <
item>
  <
itemid>
  </
itemid>
 </
item>
 <
item>
  <
itemid>
  </
itemid>
 </
item>

<!---- 
Then it changes ---->
<
newelement>
 <
newsubelement>
  <
item>
  <
itemid>
  </
itemid>
  </
item>
  <
item>
  <
itemid>
  </
itemid>
  </
item>
  <
item>
  <
itemid>
  </
itemid>
  </
item>
 </
newsubelement>
 <
newsubelement>
  <
item>
  <
itemid>
  </
itemid>
  </
item>
  <
item>
  <
itemid>
  </
itemid>
  </
item>
  <
item>
  <
itemid>
  </
itemid>
  </
item>
  <
item>
  <
itemid>
  </
itemid>
  </
item>
 </
newsubelement>
</
element
Any help would be much appreciated!

cheers
__________________
TripleXPrint on Megan Fox
"I would STILL suck her pussy until her face caved in. And then blow her up and do it again!"
georgeyw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote