discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a question relate to gsxml


From: such
Subject: a question relate to gsxml
Date: Fri, 16 Aug 2002 19:02:49 +0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020615 Debian/1.0.0-3

hello, I have problem using it. I am using cvs version and I tried

       GSXMLParser *p;
       GSXMLDocument *d;
       MySAX *h;  // MySAX : GSSAXHandler
       h = [MySAX new];
p = [GSXMLParser parserWithSAXHandler:h withData: [@"<?xml version=\"1.0\"?><test></test>" dataUsingEncoding: NSUTF8StringEncoding]];

       if ([p parse])
       {
               d = [p document];
               NSLog(@"parse %@",[d version]);
               [d writeToFile:@"test.xml" atomically:YES];

       }
       else
       {
               NSLog(@"error");
       }

but it only show
GSXMLDocument - no data for initialization
parse (nil)

what I did wrong? thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]