note 69701 added to function.dom-domnode-lookupnamespaceuri

From: Date: Sat, 16 Sep 2006 05:51:10 +0000
Subject: note 69701 added to function.dom-domnode-lookupnamespaceuri
Groups: php.notes 
Request: Send a blank email to php-notes+get-117239@lists.php.net to get a copy of this message
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. ---- Server IP: 64.71.164.2 Probable Submitter: 69.232.78.60 ---- Manual Page -- http://www.php.net/manual/en/function.dom-domnode-lookupnamespaceuri.php Edit -- https://master.php.net/note/edit/69701 Del: integrated -- https://master.php.net/note/delete/69701/integrated Del: useless -- https://master.php.net/note/delete/69701/useless Del: bad code -- https://master.php.net/note/delete/69701/bad+code Del: spam -- https://master.php.net/note/delete/69701/spam Del: non-english -- https://master.php.net/note/delete/69701/non-english Del: in docs -- https://master.php.net/note/delete/69701/in+docs Del: other reasons-- https://master.php.net/note/delete/69701 Reject -- https://master.php.net/note/reject/69701 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117239) next »