fix a bug when a dictionary contains non-string values

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34597 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2012-01-20 01:05:25 +00:00
parent 83c45d4850
commit 83dfcdf77a

View file

@ -173,7 +173,7 @@ extern void clearPrivatePointers(xmlNodePtr aNode);
// [internal->attributes removeAllObjects];
while ((key = [en nextObject]) != nil)
{
NSString *val = [attributes objectForKey: key];
NSString *val = [[attributes objectForKey: key] stringValue];
NSXMLNode *attribute = [NSXMLNode attributeWithName: key
stringValue: val];
[self addAttribute: attribute];