DOMDocument::load

(PHP 5, PHP 7) Load XML from a file public mixed DOMDocument::load ( string $filename [, int $options = 0 ] ) Loads an XML document from a file. Parameters: filename The path to the XML document. options Bitwise OR of the libxml option constants. Returns: Returns TRUE on success or FALSE on failure. If calle

DOMDocument::getElementsByTagName

(PHP 5, PHP 7) Searches for all elements with given local tag name public DOMNodeList DOMDocument::getElementsByTagName ( string $name ) This function returns a new instance of class DOMNodeList containing all the elements with a given local tag name. Parameters: name The local name (without namespace) of the tag to match on. The special value * matches all tags.

DOMDocument::getElementsByTagNameNS

(PHP 5, PHP 7) Searches for all elements with given tag name in specified namespace public DOMNodeList DOMDocument::getElementsByTagNameNS ( string $namespaceURI, string $localName ) Returns a DOMNodeList of all elements with a given local name and a namespace URI. Parameters: namespaceURI The namespace URI of the elements to match on. The special value * matches all na

DOMDocument::createProcessingInstruction

(PHP 5, PHP 7) Creates new PI node public DOMProcessingInstruction DOMDocument::createProcessingInstruction ( string $target [, string $data ] ) This function creates a new instance of class DOMProcessingInstruction. This node will not show up in the document unless it is inserted with (e.g.) DOMNode::appendChild(). Parameters: target The target of the processing instruct

DOMDocument::createEntityReference

(PHP 5, PHP 7) Create new entity reference node public DOMEntityReference DOMDocument::createEntityReference ( string $name ) This function creates a new instance of class DOMEntityReference. This node will not show up in the document unless it is inserted with (e.g.) DOMNode::appendChild(). Parameters: name The content of the entity reference, e.g. the entity reference m

DOMDocument::createElementNS

(PHP 5, PHP 7) Create new element node with an associated namespace public DOMElement DOMDocument::createElementNS ( string $namespaceURI, string $qualifiedName [, string $value ] ) This function creates a new element node with an associated namespace. This node will not show up in the document unless it is inserted with (e.g.) DOMNode::appendChild(). Parameters: namespaceURI

DOMDocument::createTextNode

(PHP 5, PHP 7) Create new text node public DOMText DOMDocument::createTextNode ( string $content ) This function creates a new instance of class DOMText. This node will not show up in the document unless it is inserted with (e.g.) DOMNode::appendChild(). Parameters: content The content of the text. Returns: The new DOMText or FALSE if an error oc

DOMDocument::createElement

(PHP 5, PHP 7) Create new element node public DOMElement DOMDocument::createElement ( string $name [, string $value ] ) This function creates a new instance of class DOMElement. This node will not show up in the document unless it is inserted with (e.g.) DOMNode::appendChild(). Parameters: name The tag name of the element. value The val

DOMDocument::createDocumentFragment

(PHP 5, PHP 7) Create new document fragment public DOMDocumentFragment DOMDocument::createDocumentFragment ( void ) This function creates a new instance of class DOMDocumentFragment. This node will not show up in the document unless it is inserted with (e.g.) DOMNode::appendChild(). Returns: The new DOMDocumentFragment or FALSE if an error occurred.

DOMDocument::createComment

(PHP 5, PHP 7) Create new comment node public DOMComment DOMDocument::createComment ( string $data ) This function creates a new instance of class DOMComment. This node will not show up in the document unless it is inserted with (e.g.) DOMNode::appendChild(). Parameters: data The content of the comment. Returns: The new DOMComment or FALSE if an