mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
Update for GSXML changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13695 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1844d00b33
commit
0c6805314c
1 changed files with 4 additions and 4 deletions
|
@ -4910,15 +4910,15 @@ GSPropertyList(NSString *string)
|
||||||
format: @"not a property list - failed to parse as XML"];
|
format: @"not a property list - failed to parse as XML"];
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
if (![[[[parser doc] root] name] isEqualToString: @"plist"])
|
if (![[[[parser document] root] name] isEqualToString: @"plist"])
|
||||||
{
|
{
|
||||||
[NSException raise: NSGenericException
|
[NSException raise: NSGenericException
|
||||||
format: @"not a property list - because name node is %@",
|
format: @"not a property list - because name node is %@",
|
||||||
[[[parser doc] root] name]];
|
[[[parser document] root] name]];
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
pl = AUTORELEASE(RETAIN(nodeToObject([[[parser doc] root] children])));
|
pl = RETAIN(nodeToObject([[[parser document] root] children]));
|
||||||
return pl;
|
return AUTORELEASE(pl);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
d = [string dataUsingEncoding: NSUnicodeStringEncoding];
|
d = [string dataUsingEncoding: NSUnicodeStringEncoding];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue