From 5c3263289b3e10c49badd416e12075af0f2f294e Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 6 Jun 2006 07:52:12 +0000 Subject: Added comment handling to the XML system. It just discards them completely, but later it will retain them so that even after modifying the nodes the comments could be kept in place so they aren't destroyed if something changes. Also added necesarry functions to the XmlDocument that lets the tests run again and fixes some issues with multiple ownernership when transfering the contents to a new document. --- src/xmldocument.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/xmldocument.cpp') diff --git a/src/xmldocument.cpp b/src/xmldocument.cpp index 234ff81..32f1409 100644 --- a/src/xmldocument.cpp +++ b/src/xmldocument.cpp @@ -50,6 +50,13 @@ XmlNode *XmlDocument::getRoot() return pRoot; } +XmlNode *XmlDocument::detatchRoot() +{ + XmlNode *pTemp = pRoot; + pRoot = NULL; + return pTemp; +} + XmlNode *XmlDocument::getCurrent() { return pCurrent; -- cgit v1.2.3