PHP Tutorial DOM
Attribute
XElement
- Add new child at the end of the children in PHP
- Copy nodes between documents in PHP
- Remove child from list of children in PHP
- Retrieve a node specified by index in PHP
- Use the contextnode parameter to shorten our expression in PHP
Document
- Check if the DOM implementation implements a specific feature in PHP
- Creates a new DOMDocument object with version and encoding in PHP
Comment
Element
- Create a new DOMElement object in PHP
- Create new element node with an associated namespace in PHP
- Creating a new element and inserting it as root in PHP
- Output the title of the second book node in the DOM document: in PHP
- Take a node of a DOM document and make it into a SimpleXML node in PHP
ProcessingInstruction
Text
DTD
EntityReference
XPath
- Evaluate the given XPath expression and returns a typed result if possible in PHP
- Evaluate the given XPath expression to get all the english books in PHP
- Get an XPath for a node in PHP
- Register PHP functions as XPath functions in PHP
Parse
- Get line number for a node in PHP
- Load HTML from a file and create DOMDocument in PHP
- Load HTML from a string and create DOMDocument in PHP
- Load XML from a file and create DOMDocument in PHP
- Load XML from a string and create a Document in PHP
- Load XML from a string and do static invocation of loadXML in PHP
Save
- Save the internal XML tree back into a file in PHP
- Save the internal XML tree back into a string in PHP
- Save the internal document into a file using HTML formatting in PHP
- Save the internal document into a string using HTML formatting in PHP
Search
- Search for all elements with given local tag name in PHP
- Search for all elements with given tag name in specified namespace in PHP
- Search for an element with a certain id in PHP