Results 1 to 5 of 5
Thread: Parsing XML with SimpleXML
Sep 21, 2011, 15:09 #1
- Join Date
- Sep 2002
- Los Angeles
- 5 Post(s)
- 0 Thread(s)
Parsing XML with SimpleXML
Looking for some help parsing an XML document with SimpleXML. First, a few points of reference:
Original XML file: http://pastebin.com/Dn1h62bu
Loaded with SimpleXML: http://pastebin.com/BZV6wAMZ
The second pasetbin page shows where I'm at. I've got the data into an array, albeit a confusing one. This array has two "sets" of data, one named Carter Club and the other Frontier Vineyards. My goal is to get the values for the [diningAttributes] array out, for Carter Club.
I am stuck with the syntax of how to get that specific data out of this array. Obviously the output of what I'm looking for is an array, but just a subset of this larger one.
It's also worth noting that while the Carter Club information resides under index 0, I won't know that. If I wanted to access the information under Frontier Vineyards instead, I would only have the site name and not have the index value.
Thoughts?TAKE A WALK OUTSIDE YOUR MIND.