added subNodes ivar to track ownership of nodes in a tree

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34513 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2012-01-13 19:24:44 +00:00
parent 3464a615f5
commit f7aff866ac
3 changed files with 20 additions and 1 deletions

View file

@ -219,7 +219,7 @@ GS_PRIVATE_INTERNAL(NSXMLDocument)
[children release];
internal->rootElement = (NSXMLElement*)root;
*/
xmlElementPtr newrootnode;
xmlNodePtr newrootnode;
NSAssert(root != nil, NSInvalidArgumentException);
// Set
xmlDocSetRootElement(MY_DOC,[root _node]);