Processing an XML document using Simple XML is one of the simplest available ways for processing XML documents. When Simple XML parses an XML documents it converts each XML element into a SimpleXMLElement object. We get a graph of SimpleXMLElement objects connected with each other. This video clip explains how to process XML using Simple XML.
Overviewing the SimpleXMLElement class you will find the methods you can call on each and every SimpleXMLElement object. Those methods include (among others) the children() and the attributes() methods. The first returns an array of objects that represents the child XML elements. The second returns an array of objects that represent the attributes of the XML element represented by the SimpleXMLElement object on which the method was called.
This video clip was prepared as part of the 'PHP Web Services' course, available for free personal and academic usage at www.abelski.com.
gnghg
linhcatcat 1 year ago
Thanks
شكرا
berhom28 1 year ago