Version: 0.1
Date: 15 September, 2000
Declared in: GSXML.h
Inherits from: NSObject
XML Parser.
Creation of a new Parser.
Source must be NSString
or NSData
.
GSXMLParser *p = [GSXMLParser parser:@"macos.xml"]; if ([p parse]) { [[p doc] dump]; } else { printf("error parse file\n"); }
Creation of a new Parser with SAX handler.
exampleNSAutoreleasePool *arp = [[NSAutoreleasePool alloc] init]; GSSAXHandler *h = [GSDebugSAXHandler handler]; GSXMLParser *p = [GSXMLParser parserWithSAXHandler: h source: @"macos.xml"]; if ([p parse]) { printf("ok\n"); } [arp release];
Creation of a new Parser with SAX handler.
Return pointer to xmlParserCtxt structure.
Return GSXMLDocument object.
Parse source. Return YES if parsed, otherwise NO.
exampleGSXMLParser *p = [GSXMLParser parser:@"macos.xml"]; if ([p parse]) { [[p doc] dump]; } else { printf("error parse file\n"); }
Set and return the previous value for default entity support. Initially the parser always keep entity references instead of substituting entity values in the output.
Set and return the previous value for default blanks text nodes support. ignorableWhitespace() are only generated when running the parser in validating mode and when the current element doesn't allow CDATA or mixed content.
Sets whether the document needs to be validated.
Return error code.
Set a external entity loader.