We want to initialize the XML parser, load the xml, and output it:
Example
< ?php |
The output of the code above will be:
Tove Jani Reminder Don't forget me this weekend! |
If you select "View source" in the browser window, you will see the following HTML:
< ?xml version="1.0" encoding="ISO-8859-1"? > |
The example above creates a DOMDocument-Object and loads the XML from "note.xml" into it.