PHP | SimpleXMLElement registerXPathNamespace() Function
Pre-requisite: Read XML Basics The SimpleXMLElement::registerXPathNamespace() function is an inbuilt function in PHP which is used to create a namespace context for the XPath query to be executed next in a SimpleXML object. Syntax: bool SimpleXMLElement::registerXPathNamespace( $prefix, $namespace )