Use DOMDocument
The DOMDocument
object is the foundation of the XML Document Object Model (DOM). It exposes properties and methods that allow you to navigate, query, and modify the content and structure of an XML document.
The following topics describe ways to use the DOMDocument
object.
- Creating a DOMDocument Object
- Loading and Saving XML
- Getting and Setting Parse Flags
- Gathering Document Information
- Accessing the Document Tree
- Creating New Nodes