|
Posted by kishore.sainath on 09/26/09 11:37
Hi All,
I see the following behaviour with XML DOM Functions with PHP 5.
>> $attributes = $node->attributes;
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
Navigation:
[Reply to this message]
|