mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
XML parsing bughfix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20221 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
27d31a0156
commit
1edd85f95f
3 changed files with 15 additions and 3 deletions
|
@ -1976,6 +1976,7 @@ main(int argc, char **argv, char **env)
|
|||
{
|
||||
if (hDate == nil || [gDate earlierDate: hDate] == hDate)
|
||||
{
|
||||
NSData *d;
|
||||
GSXMLNode *root;
|
||||
GSXMLParser *parser;
|
||||
AGSIndex *localRefs;
|
||||
|
@ -2016,7 +2017,8 @@ main(int argc, char **argv, char **env)
|
|||
[html setLocalRefs: localRefs];
|
||||
[html setInstanceVariablesAtEnd: instanceVarsAtEnd];
|
||||
generated = [html outputDocument: root];
|
||||
if ([generated writeToFile: htmlfile atomically: YES] == NO)
|
||||
d = [generated dataUsingEncoding: NSUTF8StringEncoding];
|
||||
if ([d writeToFile: htmlfile atomically: YES] == NO)
|
||||
{
|
||||
NSLog(@"Sorry unable to write %@", htmlfile);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue