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

search for in the

DOMNode::lookupPrefix> <DOMNode::isSupported
Last updated: Fri, 05 Sep 2008

view this page in

DOMNode::lookupNamespaceURI

(No version information available, might be only in CVS)

DOMNode::lookupNamespaceURI プレフィックスに基づいて、ノードの名前空間 URI を取得する

説明

string DOMNode::lookupNamespaceURI ( string $prefix )

prefix に基づいて、 ノードの名前空間 URI を取得します。

パラメータ

prefix

名前空間のプレフィックス。

返り値

ノードの名前空間 URI を返します。



add a note add a note User Contributed Notes
DOMNode::lookupNamespaceURI
lewar
05-Jun-2007 09: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, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites