This example will create a DOMDocument-Object and load the XML from note.xml into it. It will then use the saveXML() function to put the XML document into a string and output it.
The DOM parser allows for the processing of XML documents in PHP. To work with XML documents, an XML parser is required. The DOM XML parser functions are built into the PHP core.
Ajax stands for Asynchronous JavaScript and XML. It is a collection of methods to create asynchronous web applications. The DOM is accessed with JavaScript. HTML and CSS are used to markup style information. XML is used for the interchange of data.
This example will initialize an XML parser. It will then load the XML. It will then loop through all the elements of the note element.