DOM XML : set_attribute()

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

 



Hi,

I am working with PHP 4.3 on windows. I am using PHP DOM functions to update
the XML file.
When I try to set the attribute of a particular node, the subsequent get
returns the set value, but it doesn't reflect in the memory structure.

echo "###",$build_node->get_attribute('path');   => this returns the
original path value.
$build_node->set_attribute('path', 'new_path');
echo "###",$build_node->get_attribute('path');  => this returns the new_path
value.
var_dump($build_node);                                 => This does not
reflect the change in path attribute for the build_node, it shows the the
original path value.

Can anybody help me in this issue?

Thanks,
Jils

[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