Re: DOMElement - attributes and namespace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux