Re: DOMElement - attributes and namespace

From: Date: Sun, 22 Mar 2009 09:50:44 +0000
Subject: Re: DOMElement - attributes and namespace
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-290523@lists.php.net to get a copy of this message
Michael A. Peters wrote:
Here's the problem - $attributes = $node->attributes; creates a list that has both regular attributes and namespaced attributes. But I don't know how to programatically tell them apart.
http://phpbuilder.com/manual/en/class.domattr.php What would be really nice is if I could do $attribute->namespace the same way I could do $attribute->name and $attribute->value That would easily allow me to solve the problem. Is there a reason why that isn't part of the DOMAttr class?

« previous php.general (#290523) next »