![]() |
problem in deleting a node from an xml file
Hi,
Am new to xml, using the xercess c++ DOM parser . I want to delete a node from the xml file. Have used th removeChild() method...but nothin happens.. not even errors.. it executes but doesnt remove any node from the file. here's the code snippet (that's after parsing and loadin the xml file) DOMNode *root = pDoc1->getDocumentElement(); DOMNode *child = root->getFirstChild(); DOMNode *nextchild = child->getNextSibling(); child->removeChild(nextchild); other than the deleting part.. rest of the code works fine. Cud aneone help please :) Thanks. |
Re: problem in deleting a node from an xml file
Sumeeta. wrote:
> Hi, > > Am new to xml, using the xercess c++ DOM parser . > I want to delete a node from the xml file. Have used th removeChild() > method...but nothin happens.. not even errors.. > it executes but doesnt remove any node from the file. > > here's the code snippet (that's after parsing and loadin the xml file) > DOMNode *root = pDoc1->getDocumentElement(); > DOMNode *child = root->getFirstChild(); > DOMNode *nextchild = child->getNextSibling(); > child->removeChild(nextchild); Maybe saving the results back into a file would help? Soren |
| All times are GMT. The time now is 02:18 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.