Hi All,
I see the following behaviour with XML DOM Functions with PHP 5.
[color=blue][color=green]
>> $attributes = $node->attributes;[/color][/color]
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
I see the following behaviour with XML DOM Functions with PHP 5.
[color=blue][color=green]
>> $attributes = $node->attributes;[/color][/color]
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