XML DOM Functions in PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hi All,

I see the following behaviour with XML DOM Functions with PHP 5.

Quoted text here. Click to load it
            if ( $attributes != NULL )  {
                for ( $i = 0; $i < $attributes->length; $i++ )  {
                    $attribute = $attributes->item( $i );
                    $tree->addAttribute( $attribute->name,
$attribute->value );

The attributes property does not return attributes which are part of
the xmlns namespace.

Is there any workaround for this?

- Kishore

Site Timeline