PHP Simple XML
- Started
- Last post
- 11 Responses
- skonge
Has anyone ever parsed an xml file using php's simpleXML?
I could use some help!
- acescence0
yes
- skonge0
I am trying to parse this xml structure...
United States
Alabama
Anniston
Athens
Bessemer
I get stuck at city. What would the syntax be to get deeper into the array?
- skonge0
damn xml didn't show up!
- UndoUndo0
post it on the link
http://pastebin.se (just click the button at the bottom) and poast back the link it gives
we can then see the code!
- skonge0
The file continues with all of the states in the US and certain cities in each state.
Thanks!
- acescence0
if i understand correctly, you're trying to access all the location attributes, id, venue_id, category, etc.? works just like an array:
- skonge0
I need to get the coutntry, state, citites, addresses, and zip code.
I can get coutnrey and state to print. Here is the code I have been trying.
Thnanks
- undo_undo0
post yr PHP
- acescence0
you owe me a beer
- skonge0
acescence, you rock. can i fax that beer to you!
Thanks for the help