support text nodes; and SET THE NODE

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34521 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2012-01-14 06:14:46 +00:00
parent d43aa730a1
commit 70b79c28fc

View file

@ -83,6 +83,9 @@ void clearPrivatePointers(xmlNodePtr aNode)
case(XML_ELEMENT_NODE): case(XML_ELEMENT_NODE):
result = [[self alloc] initWithKind: NSXMLElementKind]; result = [[self alloc] initWithKind: NSXMLElementKind];
break; break;
case(XML_TEXT_NODE):
result = [[self alloc] initWithKind: NSXMLTextKind];
break;
case(XML_PI_NODE): case(XML_PI_NODE):
result = [[self alloc] initWithKind: NSXMLProcessingInstructionKind]; result = [[self alloc] initWithKind: NSXMLProcessingInstructionKind];
break; break;
@ -96,7 +99,7 @@ void clearPrivatePointers(xmlNodePtr aNode)
default: default:
break; break;
} }
node->_private = result; [result _setNode:node];
AUTORELEASE(result); AUTORELEASE(result);
if (node->parent) if (node->parent)
parent = [self _objectForNode:node->parent]; parent = [self _objectForNode:node->parent];