downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DOMNode::lookupPrefix> <DOMNode::isSupported
Last updated: Fri, 20 Nov 2009

view this page in

DOMNode::lookupNamespaceURI

(PHP 5)

DOMNode::lookupNamespaceURI Gets the namespace URI of the node based on the prefix

Description

string DOMNode::lookupNamespaceURI ( string $prefix )

Gets the namespace URI of the node based on the prefix .

Parameters

prefix

The prefix of the namespace.

Return Values

The namespace URI of the node.

See Also



add a note add a note User Contributed Notes
DOMNode::lookupNamespaceURI
lewar
05-Jun-2007 12:20
Simple way to get the URI of the default namespace:

<?php
    $document
= new DOMDocument();
   
$document->load($xml_file);
   
$uri = $document->documentElement->lookupnamespaceURI(NULL);
?>

DOMNode::lookupPrefix> <DOMNode::isSupported
Last updated: Fri, 20 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites