fix rootElement

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34522 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2012-01-14 06:51:13 +00:00
parent 70b79c28fc
commit 25ffa3ff82
2 changed files with 7 additions and 4 deletions

View file

@ -78,10 +78,10 @@ void clearPrivatePointers(xmlNodePtr aNode)
switch(type)
{
case(XML_DOCUMENT_NODE):
result = [[self alloc] initWithKind: NSXMLDocumentKind];
result = [[NSXMLDocument alloc] initWithKind: NSXMLDocumentKind];
break;
case(XML_ELEMENT_NODE):
result = [[self alloc] initWithKind: NSXMLElementKind];
result = [[NSXMLElement alloc] initWithKind: NSXMLElementKind];
break;
case(XML_TEXT_NODE):
result = [[self alloc] initWithKind: NSXMLTextKind];