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:
Richard Frith-Macdonald 2002-05-23 16:03:09 +00:00
parent 4e55c4db90
commit 99c3853e95

View file

@ -4910,15 +4910,15 @@ GSPropertyList(NSString *string)
format: @"not a property list - failed to parse as XML"];
return nil;
}
if (![[[[parser doc] root] name] isEqualToString: @"plist"])
if (![[[[parser document] root] name] isEqualToString: @"plist"])
{
[NSException raise: NSGenericException
format: @"not a property list - because name node is %@",
[[[parser doc] root] name]];
[[[parser document] root] name]];
return nil;
}
pl = AUTORELEASE(RETAIN(nodeToObject([[[parser doc] root] children])));
return pl;
pl = RETAIN(nodeToObject([[[parser document] root] children]));
return AUTORELEASE(pl);
}
#endif
d = [string dataUsingEncoding: NSUnicodeStringEncoding];