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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to