note 69701 deleted from function.dom-domnode-lookupnamespaceuri by didou

From: Date: Sat, 30 Dec 2006 03:37:52 +0000
Subject: note 69701 deleted from function.dom-domnode-lookupnamespaceuri by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121067@lists.php.net to get a copy of this message
Note Submitter: Richard Remer ---- One might expect DOMNode::lookupNamespaceURI( null ) to return the default namespace of the node (as the XML DOM spec indicates), but in fact it return nothing. Added to this problem is the fact that DOMNode::getAttribute( 'xmlns' ) will not return the value of the xmlns attribute, so it is not possible to "walk" the tree back to find the default namespace. As far as I can tell, there is no way in PHP 5 DOM to determine what the default namespace is in an XML document.

« previous php.notes (#121067) next »