Skip to content

Tag Archives: PHP-DOM

The DOMXPath::registerNamespace() function is an inbuilt function in PHP which is used to register the namespaceURI and prefix with the DOMXPath object. Syntax: bool DOMXPath::registerNamespace(… Read More
The DOMXPath::evaluate() function is an inbuilt function in PHP which is used to execute the given XPath expression which is a pattern defined to select… Read More
The DOMNodeList::item() function is an inbuilt function in PHP which is used to retrieve a node specified by index. Syntax: DOMNode DOMNodeList::item( int $index )… Read More
The DOMXPath::__construct() function is an inbuilt function in PHP which is used to create an instance of DOMXPath. Syntax: bool DOMXPath::__construct( DOMDocument $doc ) Parameters:… Read More
The DOMNode::replaceChild() function is an inbuilt function in PHP which is used replace the old child node with the passed new node. Further, if the… Read More
The DOMText::isWhitespaceInElementContent() function is an inbuilt function in PHP which is used to indicate whether this text node contains whitespace or not. In simple words,… Read More
The DOMNodeList::count() function is an inbuilt function in PHP which is used to get the number of nodes in the list. Syntax: int DOMNodeList::count( void… Read More
The DOMProcessingInstruction::__construct() function is an inbuilt function in PHP which is used a new read-only DOMProcessingInstruction object. To create a writeable node, use DOMDocument::createProcessingInstruction. Syntax:… Read More
The DOMText::isElementContentWhitespace() function is an inbuilt function in PHP which is used to check whether this text node contains whitespace in element content or not.… Read More
The DOMXPath::query() function is an inbuilt function in PHP which is used to evaluate the given XPath expression. Syntax: DOMNodeList DOMXPath::query( string $expression, DOMNode $contextnode,… Read More
The DOMText::__construct() function is an inbuilt function in PHP which is used to create a new DOMText object. Syntax: public DOMText::__construct( string $value ) Parameters:… Read More
The DOMText::splitText() function is an inbuilt function in PHP which is used to break a node into two nodes at the specified offset. Syntax: DOMText… Read More
The DOMElement::setAttributeNode() function is an inbuilt function in PHP which is used to add a new attribute node to element. Syntax: DOMAttr DOMElement::setAttributeNode( DOMAttr $attr… Read More
The DOMNode::insertBefore() function is an inbuilt function in PHP which is used to insert a new node before a certain another node. Syntax: DOMNode DOMNode::insertBefore(… Read More
The DOMElement::getElementsByTagNameNS() function is an inbuilt function in PHP which is used to get all the descendant elements with a given localName and namespaceURI. Syntax:… Read More