PHP Tutorial SimpleXML
Attribute
- Access attribute and element value in PHP
- Get attribute and element as array in PHP
- Get attributes and values within the XML body element in PHP
Element
- Check if an element is an array in PHP
- Convert an XML file into a SimpleXMLElement object, then output keys and elements of the object in PHP
- Count element in PHP
- Get element by index in PHP
- Get element value in two level down in PHP
- Get element value type in PHP
- Get value from an element with foreach loop in PHP
- Output keys and elements of a SimpleXMLElement object in PHP
- Output the data from each element in the XML file in PHP
Basic
- Clear XML document by tag and output in PHP
- Get value from XML and do calculation in PHP
- Output loaded xml file with simplexml_load_file in PHP
- Save a copy for an xml document in PHP
- Send xml to client as Content-Type text/xml in PHP
- Set new version and encoding value for saved xml document in PHP
Child
- Find the children of a node in PHP
- Find the children of the body node in PHP
- Output the element ' s name and data for each child node in PHP
- Output the element ' s name and data for each child node in the XML file in PHP
- Save child element to a file in PHP
- Set child elements to client as Content-Type text/xml in PHP
Loop
- Loop through XML document with foreach loop in PHP
- Loop through each top level node to display its name in PHP