I am trying to work with an XML document with namespace declarations
In testing my PHP code I am getting the error message: "URI UBLCatalogDocument is not absolute"
Can someone help?
Thanks - Skip
Code:
<?php
$doc = new DOMDocument();
$doc->load( 'UBLCatalog.xml' );
$Items = $doc->getElementsByTagNameNS( "UBLCommonAggregateComponents","Item" );
foreach( $Items as $Item )
{
$descriptions = $Item->getElementsByTagNameNS( "UBLCommonBasicComponents","Description" );
$description = $descriptions->item(0)->nodeValue;
echo "<b>$description\n</b><br>";
}
?>