Hi All ,
I have a xml file like this
[HTML]
testProduct
[/HTML]
Now I need to set the product id with value "abc". I could get the value of the product id like this
[PHP]
use XML:

OM;
use XML:

arser;
my $file = "test.xml";
my $parser = new XML:

OM:

arser;
my $doc = $parser->parsefile($file);
my $nodes = $doc->getElementsByTagName("product");
my $node = $nodes->item(0);
my $valueOfID = $node->getAttributeNode("id");
my $valID = $valueOfID->getValue;
# $node->setAttribute("id","abc");
[/PHP]
but findind it difficult to set the value to the id attribute of the product node
any help on this is appreciated.