* 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

@ -1,3 +1,11 @@
2012-02-22 Fred Kiefer <FredKiefer@gmx.de>
* 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.
2012-02-21 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSXMLNode.m: Clean up helper functions.

View file

@ -60,6 +60,9 @@ GS_PRIVATE_INTERNAL(NSXMLDTDNode)
- (id) initWithXMLString: (NSString*)string
{
// internal->node = xmlNewDtd(NULL,NULL,NULL);
// TODO: Parse the string and get the info to create this...
[self notImplemented: _cmd];
return nil;
}

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;
}

File diff suppressed because it is too large Load diff