Help to parsing an XML element - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Help to parsing an XML element (/showthread.php?tid=28956) |
Help to parsing an XML element - El Forum - 03-26-2010 [eluser]nickifrandsen[/eluser] Hey there I'm working on parsing this bit of xml and can't seem to get it right. Hope that one of you can provide a little tip. That would save my day Code: <?xml version="1.0" encoding="UTF-8"?> Code: <?php foreach($xml->channel->item as $row) : ?> Thank you very much for your time! Help to parsing an XML element - El Forum - 03-27-2010 [eluser]nickifrandsen[/eluser] Please any little help would be appreciated. I'm really stuck on this! thanks Help to parsing an XML element - El Forum - 03-27-2010 [eluser]antonumia[/eluser] why don't you use xpath? There's a testbed to help you get started. Help to parsing an XML element - El Forum - 03-27-2010 [eluser]antonumia[/eluser] something like this should get you started. NB:I've not tested it: Code: // in your constructor Help to parsing an XML element - El Forum - 03-27-2010 [eluser]umefarooq[/eluser] try this xml library will help you http://codeigniter.com/wiki/Xml_Library/ Help to parsing an XML element - El Forum - 03-28-2010 [eluser]nickifrandsen[/eluser] Thank you both. I think that made things a little clearer |