How to parse XML with PHP's SimpleXML

1 · Josh Sherman · June 29, 2014, midnight
Parsing XML in PHP couldn’t be easier thanks to the SimpleXML extension. SimpleXML allows you to read in an XML string, verify that it is in fact XML and can create an object that you can interact with by way of the node names in the XML.The SimpleXML extension also......