mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
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:
parent
d43aa730a1
commit
70b79c28fc
1 changed files with 4 additions and 1 deletions
|
@ -83,6 +83,9 @@ void clearPrivatePointers(xmlNodePtr aNode)
|
|||
case(XML_ELEMENT_NODE):
|
||||
result = [[self alloc] initWithKind: NSXMLElementKind];
|
||||
break;
|
||||
case(XML_TEXT_NODE):
|
||||
result = [[self alloc] initWithKind: NSXMLTextKind];
|
||||
break;
|
||||
case(XML_PI_NODE):
|
||||
result = [[self alloc] initWithKind: NSXMLProcessingInstructionKind];
|
||||
break;
|
||||
|
@ -96,7 +99,7 @@ void clearPrivatePointers(xmlNodePtr aNode)
|
|||
default:
|
||||
break;
|
||||
}
|
||||
node->_private = result;
|
||||
[result _setNode:node];
|
||||
AUTORELEASE(result);
|
||||
if (node->parent)
|
||||
parent = [self _objectForNode:node->parent];
|
||||
|
|
Loading…
Reference in a new issue