note 26422 added to function.domelement-get-elements-by-tagname

From: Date: Wed, 30 Oct 2002 13:02:29 +0000
Subject: note 26422 added to function.domelement-get-elements-by-tagname
Groups: php.notes 
Request: Send a blank email to php-notes+get-38747@lists.php.net to get a copy of this message
if you want to search for tagnames with namespaces, do it the following way: (it's a work around, not a really proper solution..) $dom = domxml_open_mem($xmlval); $ctx=xpath_new_context($dom); $ctx->xpath_register_ns("yns","http://your.name.space/uri"); $nodes = $dom->get_elements_by_tagname("yns:tagname",$ctx); -- http://www.php.net/manual/en/function.domelement-get-elements-by-tagname.php http://master.php.net/manage/user-notes.php?action=edit+26422 http://master.php.net/manage/user-notes.php?action=delete+26422 http://master.php.net/manage/user-notes.php?action=reject+26422

« previous php.notes (#38747) next »