* Source/NSXMLNode.m: Further clean up.

* Source/NSXMLDTDNode.m (-initWithXMLString:): Move comment
about missing code to here.
* Source/NSXMLElement.m (-initWithName:stringValue:): Move
subnode creation to here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34806 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2012-02-22 10:55:12 +00:00
parent 5f2856a462
commit 30c7457ba0
4 changed files with 496 additions and 488 deletions

View file

@ -110,7 +110,11 @@ extern void clearPrivatePointers(xmlNodePtr aNode);
{
if ([self initWithName: name URI: nil] != nil)
{
[self setObjectValue: string];
NSXMLNode *t;
t = [[NSXMLNode alloc] initWithKind: NSXMLTextKind];
[t setStringValue: string];
[self addChild: t];
[t release];
}
return nil;
}