Retrieves a node specified by localName and namespaceURI

public function getNamedItemNS(
  string $namespaceuri,
  string $localname,
): Tnode;


  • string $namespaceuri - The namespace URI of the node to retrieve.
  • string $localname - The local name of the node to retrieve.

Return Values

  • mixed - - A node (of any type) with the specified local name and namespace URI, or NULL if no node is found.