views:

41

answers:

0

Hi all,

I'm facing some strange issue in appendChild. In the below code at line no 3 'xmlTobeUpdated' is not appending to 'xmlRecord'. Instead of appendChild(), i tried with prependChild() that time its got added to the beginning. Any have idea why appendChild not working. Is there any issue in that method. Please Help.

1     xmlToBeUpdated = XML("<" + strChildRoot + " Type=\"EntityList\" " + "/>");
2     xmlToBeUpdated.appendChild(xmlChildRecord);
3     xmlRecord.appendChild(xmlToBeUpdated);

Thanks Manivannan