PDA

View Full Version : parsing this simple xml file in php



susancbk
May 4th, 2007, 04:34 PM
I need to grab the data in the username tag from the following xml doc
http://api.flickr.com/services/rest/?method=flickr.people.findByUserna me&api_key=3d5a7edd1fdfd7a030acaa740f2b5bbc&username=susanbuck&auth_to ken=72157600176356413-e7a9878439beb484&api_sig=faaedcabce23e19fc5fe9e7 a959c56cb (http://api.flickr.com/services/rest/?method=flickr.people.findByUsername&api_key=3d5a7edd1fdfd7a030acaa740f2b5bbc&username=susanbuck&auth_token=72157600176356413-e7a9878439beb484&api_sig=faaedcabce23e19fc5fe9e7a959c56cb)


what is the most simple code I can use to do this?
i've been researching all day on parsing xml with php... I came across the tutorial here http://www.kirupa.com/web/xml_php_parse_beginner.htm (http://www.kirupa.com/forum/../web/xml_php_parse_beginner.htm) and got the example to work, but it broke when i tried it on the above url i need to parse....


I know its a simple task, and i've spent enough time trying to figure it out so i figured i'd go to the experts. http://www.ozzu.com/images/smiles/icon_smile.gif