This post follows the multiple choice question theme. I’ve spent quite a bit of time working on how to go about parsing an XML file using PHP. I had to pay particular attention to the structure of the XML file with reference to which elements appeared where and which were repeated but in different orders throughout the document.
I’m the sort who likes to learn by doing and having a play with things. I read a basic php xml parsing tutorial on sitepoint written by Kevin Yank (PHP and XML: Parsing RSS 1.0) it explains the process pretty well so if you want to know the specifics of creating the parser object I recommend you read that brief tutorial or consult the php manual.

Recent Comments