DOM API Namespaces - help?

From: Date: Wed, 23 Jan 2008 13:53:33 +0000
Subject: DOM API Namespaces - help?
Groups: php.general 
Request: Send a blank email to php-general+get-267903@lists.php.net to get a copy of this message
Help?? I need to get the namespaces from the root node of a DomDocument.. <?xml version="1.0" ?> <chapter xmlns:xi="http://www.w3.org/2001/XInclude"> <para> <xi:include href="book.xml"> </xi:include> </para> </chapter> I know I can retrieve the namespaceUri from the "xi:include" node using lookupNamespaceURI and ->prefix but I need to get it from where it's defined in "chapter" but assuming the above file is: <?xml version="1.0" ?> <chapter xmlns:xi="http://www.w3.org/2001/XInclude"> <a /> </chapter> how would one retrieve xmlns:xi="http://www.w3.org/2001/XInclude" Thanks in advance! Nathan

« previous php.general (#267903) next »