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?