mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-08 07:20:48 +00:00
* 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:
parent
b4b1fd5646
commit
a2f291260f
4 changed files with 496 additions and 488 deletions
|
@ -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>
|
2012-02-21 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSXMLNode.m: Clean up helper functions.
|
* Source/NSXMLNode.m: Clean up helper functions.
|
||||||
|
|
|
@ -60,6 +60,9 @@ GS_PRIVATE_INTERNAL(NSXMLDTDNode)
|
||||||
|
|
||||||
- (id) initWithXMLString: (NSString*)string
|
- (id) initWithXMLString: (NSString*)string
|
||||||
{
|
{
|
||||||
|
// internal->node = xmlNewDtd(NULL,NULL,NULL);
|
||||||
|
// TODO: Parse the string and get the info to create this...
|
||||||
|
|
||||||
[self notImplemented: _cmd];
|
[self notImplemented: _cmd];
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,7 +110,11 @@ extern void clearPrivatePointers(xmlNodePtr aNode);
|
||||||
{
|
{
|
||||||
if ([self initWithName: name URI: nil] != nil)
|
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;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue