PHP : Function Reference : DOM Functions : DOMNode->lookupNamespaceURI()
lewar
Simple way to get the URI of the default namespace:
<?php
$document = new DOMDocument();
$document->load($xml_file);
$uri = $document->documentElement->lookupnamespaceURI(NULL);
?>
|