mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
* Source/NSXMLNode.m (-rootDocument): Better test for private document.
* Source/NSXMLDTDNode.m (-initWithXMLString:): Use childAtIndex: instead of rootElement. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34991 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
511ebc6580
commit
b0c27e37b1
3 changed files with 8 additions and 2 deletions
|
@ -79,7 +79,7 @@ GS_PRIVATE_INTERNAL(NSXMLDTDNode)
|
|||
error: &error];
|
||||
if (tempDoc != nil)
|
||||
{
|
||||
result = RETAIN([tempDoc rootElement]);
|
||||
result = RETAIN([tempDoc childAtIndex: 0]);
|
||||
[result detach]; // detach from document.
|
||||
}
|
||||
[tempDoc release];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue