The XML parser object is the pivotal part of parsing an XML document - it will either build a tree representing the document (if initialized without a GSSAXHandler), or will cooperate with a GSSAXHandler object to provide parsing without the overhead of building a tree.
The parser may be initialized with an input source (in which case it will expect to be asked to parse the entire input in a single operation), or without. If it is initialised without an input source, incremental parsing can be done by feeding successive parts of the XML document into the parser as NSData objects.
Creation of a new Parser (for incremental parsing) by calling initWithSAXHandler:
Creation of a new Parser by calling initWithSAXHandler:withContentsOfFile:
Creation of a new Parser by calling initWithSAXHandler:withContentsOfURL:
Creation of a new Parser by calling initWithSAXHandler:withData:
Creation of a new Parser by calling initWithSAXHandler:
If the handler object supplied is nil, the parser will build a tree representing the parsed file rather than attempting to get the handler to deal with the parsed elements and entities.
Creation of a new Parser by calling initWithSAXHandler:withContentsOfFile:
Creation of a new Parser by calling initWithSAXHandler:withContentsOfURL:
Creation of a new Parser by calling initWithSAXHandler:withData:
Initialisation of a new Parser with SAX handler (if not nil).
If the handler object supplied is nil, the parser will build a tree representing the parsed file rather than attempting to get the handler to deal with the parsed elements and entities.
The source for the parsing process is not specified - so parsing must be done incrementally by feeding data to the parser.
Initialisation of a new Parser with SAX handler (if not nil) by calling initWithSAXHandler:
Sets the input source for the parser to be the specified file - so parsing of the entire file will be performed rather than incremental parsing.
Initialisation of a new Parser with SAX handler (if not nil) by calling initWithSAXHandler:
Sets the input source for the parser to be the specified URL - so parsing of the entire document will be performed rather than incremental parsing.
Initialisation of a new Parser with SAX handler (if not nil) by calling initWithSAXHandler:
Sets the input source for the parser to be the specified data object (which must contain an XML document), so parsing of the entire document will be performed rather than incremental parsing.
Return pointer to xmlParserCtxt structure.
Return GSXMLDocument object.
Parse source. Return YES if parsed, otherwise NO. This method should be called once to parse the entire document.
Pass data to the parser for incremental parsing. This method should be called many times, with each call passing another block of data from the same document. After the whole of the document has been parsed, the method should be called with an empty or nil data object to indicate end of parsing. On this final call, the return value indicates whether the document was valid or not.
Set and return the previous value for entity support. Initially the parser always keeps entity references instead of substituting entity values in the output.
Set and return the previous value for blank 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.