From 065ac2bce2791b8d20aece7e01b8cdd5de79eaee Mon Sep 17 00:00:00 2001 From: Doug Simons Date: Thu, 12 Jan 2012 18:49:13 +0000 Subject: [PATCH] fix setRootElement: git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34504 72102866-910b-0410-8b05-ffd578937521 --- Source/NSXMLDocument.m | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Source/NSXMLDocument.m b/Source/NSXMLDocument.m index 8145fd6b8..263b59c94 100644 --- a/Source/NSXMLDocument.m +++ b/Source/NSXMLDocument.m @@ -202,19 +202,17 @@ GS_PRIVATE_INTERNAL(NSXMLDocument) - (void) setRootElement: (NSXMLNode*)root { - xmlNodePtr nodeLib = (xmlNodePtr)[root _node]; - xmlNodePtr selfLib = (xmlNodePtr)[self _node]; +/* NSArray *children; NSAssert(root == nil, NSInvalidArgumentException); - /* this method replaces *all* children with the specified element. - */ + // this method replaces *all* children with the specified element. children = [[NSArray alloc] initWithObjects: &root count: 1]; [self setChildren: children]; [children release]; internal->rootElement = (NSXMLElement*)root; - +*/ // Set xmlDocSetRootElement(MY_DOC,[root _node]); }