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::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::getElementById

(PHP 5, PHP 7) Searches for an element with a certain id public DOMElement DOMDocument::getElementById ( string $elementId ) This function is similar to DOMDocument::getElementsByTagName but searches for an element with a given id. For this function to work, you will need either to set some ID attributes with DOMElement::setIdAttribute or a DTD which defines an attribute to be of type ID. In the later case, you will need t

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::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::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