2004-10-20 10:48:04 +00:00
|
|
|
/** Interface for NSXMLParser for GNUStep
|
|
|
|
Copyright (C) 2004 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Written by: Richard Frith-Macdonald <rfm@gnu.org>
|
|
|
|
Date: May 2004
|
|
|
|
|
|
|
|
This file is part of the GNUstep Base Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
2007-09-14 11:36:11 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2004-10-20 10:48:04 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-08 10:38:33 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
2004-10-20 10:48:04 +00:00
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
2007-09-14 11:36:11 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2004-10-20 10:48:04 +00:00
|
|
|
License along with this library; if not, write to the Free
|
2006-03-08 11:28:59 +00:00
|
|
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
|
MA 02111 USA.
|
2004-10-20 10:48:04 +00:00
|
|
|
|
|
|
|
AutogsdocSource: NSXMLParser.m
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NSXMLParser_h_GNUSTEP_BASE_INCLUDE
|
|
|
|
#define __NSXMLParser_h_GNUSTEP_BASE_INCLUDE
|
2006-10-31 07:05:46 +00:00
|
|
|
#import <GNUstepBase/GSVersionMacros.h>
|
2004-10-20 10:48:04 +00:00
|
|
|
|
2006-10-31 07:05:46 +00:00
|
|
|
#if OS_API_VERSION(100300, GS_API_LATEST)
|
2004-10-20 10:48:04 +00:00
|
|
|
|
2006-10-31 07:05:46 +00:00
|
|
|
#import <Foundation/NSObject.h>
|
2004-10-20 10:48:04 +00:00
|
|
|
|
2006-09-13 10:20:49 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-10-20 10:48:04 +00:00
|
|
|
@class NSData, NSDictionary, NSError, NSString, NSURL;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Domain for errors
|
|
|
|
*/
|
|
|
|
GS_EXPORT NSString* const NSXMLParserErrorDomain;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class is a PRE-ALPHA implementation. You should be prepared to
|
2005-11-06 13:53:40 +00:00
|
|
|
* track down and fix bugs and preferably contribute fixes back.<br />
|
2004-10-20 10:48:04 +00:00
|
|
|
* If you don't want to do that, use the [GSXMLParser] class instead ...
|
|
|
|
* This NSXMLParser class is implemented as a wrapper round some of the
|
2005-11-06 13:53:40 +00:00
|
|
|
* functionality of the more powerful GSXML APIs, and is intended as a
|
2004-10-20 10:48:04 +00:00
|
|
|
* MacOSX compatibility feature.
|
|
|
|
* <p>
|
|
|
|
* This class implements an event driven parser handling the parsing
|
|
|
|
* process by sending messages to a delegate when certain parts of the
|
|
|
|
* XML document being parsed are encountered.
|
|
|
|
* </p>
|
|
|
|
* <p>
|
|
|
|
* To use the class, you create and initialise an instance with a particular
|
|
|
|
* XML document, set the delegate of the instance, and send a -parse message
|
|
|
|
* to it. The delegate must then make use of the information it receives
|
|
|
|
* in the messages it gets from the parser.
|
|
|
|
* </p>
|
|
|
|
* <p>
|
|
|
|
* The [NSObject(NSXMLParserDelegateEventAdditions)] informal protocol
|
|
|
|
* documents the methods which the delegate object may implement in order
|
|
|
|
* to handle the parsing process.
|
|
|
|
* </p>
|
|
|
|
*/
|
|
|
|
@interface NSXMLParser : NSObject
|
|
|
|
{
|
2010-02-14 10:48:10 +00:00
|
|
|
#if GS_EXPOSE(NSXMLParser)
|
|
|
|
@public
|
2004-10-20 10:48:04 +00:00
|
|
|
void *_parser; // GSXMLParser
|
|
|
|
void *_handler; // SAXHandler
|
2010-03-02 09:51:12 +00:00
|
|
|
#endif
|
2011-02-16 05:49:45 +00:00
|
|
|
#if GS_NONFRAGILE
|
|
|
|
#else
|
2011-02-14 06:37:45 +00:00
|
|
|
/* Pointer to private additional data used to avoid breaking ABI
|
|
|
|
* when we don't have the non-fragile ABI available.
|
2011-02-16 05:49:45 +00:00
|
|
|
* Use this mechanism rather than changing the instance variable
|
|
|
|
* layout (see Source/GSInternal.h for details).
|
2011-02-14 06:37:45 +00:00
|
|
|
*/
|
2011-02-16 05:49:45 +00:00
|
|
|
@private void *_internal GS_UNUSED_IVAR;
|
2011-02-14 06:37:45 +00:00
|
|
|
#endif
|
2004-10-20 10:48:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Terminates the current parse operation and sends an error to the
|
|
|
|
* delegate of the parser.
|
|
|
|
*/
|
|
|
|
- (void) abortParsing;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the delegate previously set using -setDelegate: or nil if
|
|
|
|
* no delegate is set.
|
|
|
|
*/
|
|
|
|
- (id) delegate;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Convenience method fetching data from anURL.<br />
|
|
|
|
*/
|
|
|
|
- (id) initWithContentsOfURL: (NSURL*)anURL;
|
|
|
|
|
|
|
|
/** <init />
|
|
|
|
* Initialises the parser with the specified xml data.
|
|
|
|
*/
|
|
|
|
- (id) initWithData: (NSData*)data;
|
|
|
|
|
|
|
|
/**
|
2005-11-06 13:53:40 +00:00
|
|
|
* Parses the supplied data and returns YES on success, NO otherwise.
|
2004-10-20 10:48:04 +00:00
|
|
|
*/
|
|
|
|
- (BOOL) parse;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the last error produced by parsing (if any).
|
|
|
|
*/
|
|
|
|
- (NSError*) parserError;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the parser delegate (which is not retained).
|
|
|
|
*/
|
|
|
|
- (void) setDelegate: (id)delegate;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set flag to determine whether the namespaceURI and the qualified name
|
|
|
|
* of an element is provided in the
|
|
|
|
* [NSObject-parser:didStartElement:namespaceURI:qualifiedName:attributes:]
|
|
|
|
* and [NSObject-parser:didEndElement:namespaceURI:qualifiedName:] methods.
|
|
|
|
*/
|
|
|
|
- (void) setShouldProcessNamespaces: (BOOL)aFlag;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets a flag to specify whether the parser should call the
|
|
|
|
* [NSObject-parser:didStartMappingPrefix:toURI:] and
|
|
|
|
* [NSObject-parser:didEndMappingPrefix:] delegate methods.
|
|
|
|
*/
|
|
|
|
- (void) setShouldReportNamespacePrefixes: (BOOL)aFlag;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets flag to determine if declarations of external entities are
|
|
|
|
* reported using
|
|
|
|
* [NSObject-parser:foundExternalEntityDeclarationWithName:publicID:systemID:]
|
|
|
|
*/
|
|
|
|
- (void) setShouldResolveExternalEntities: (BOOL)aFlag;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the value set by -setShouldProcessNamespaces:
|
|
|
|
*/
|
|
|
|
- (BOOL) shouldProcessNamespaces;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the value set by -setShouldReportNamespacePrefixes:
|
|
|
|
*/
|
|
|
|
- (BOOL) shouldReportNamespacePrefixes;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the value set by -setShouldResolveExternalEntities:
|
|
|
|
*/
|
|
|
|
- (BOOL) shouldResolveExternalEntities;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface NSXMLParser (NSXMLParserLocatorAdditions)
|
|
|
|
/**
|
|
|
|
* Returns the current column number of the document being parsed.
|
|
|
|
*/
|
2009-02-23 20:42:32 +00:00
|
|
|
- (NSInteger) columnNumber;
|
2004-10-20 10:48:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the current line number of the document being parsed.
|
|
|
|
*/
|
2009-02-23 20:42:32 +00:00
|
|
|
- (NSInteger) lineNumber;
|
2004-10-20 10:48:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the public identifier of the external entity in the
|
|
|
|
* document being parsed.
|
|
|
|
*/
|
|
|
|
- (NSString*) publicID;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the system identifier of the external entity in the
|
|
|
|
* document being parsed.
|
|
|
|
*/
|
|
|
|
- (NSString*) systemID;
|
|
|
|
@end
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Methods implemented by a delegate in order to make use of the parser.<br />
|
|
|
|
* This is an informal protocol.
|
|
|
|
*/
|
|
|
|
@interface NSObject (NSXMLParserDelegateEventAdditions)
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (NSData*) parser: (NSXMLParser*)aParser
|
|
|
|
resolveExternalEntityName: (NSString*)aName
|
|
|
|
systemID: (NSString*)aSystemID;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
didEndElement: (NSString*)anElementName
|
|
|
|
namespaceURI: (NSString*)aNamespaceURI
|
|
|
|
qualifiedName: (NSString*)aQualifierName;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
didEndMappingPrefix: (NSString*)aPrefix;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
2004-10-20 10:48:04 +00:00
|
|
|
* Called when the start of an element is encountered in the document,
|
|
|
|
* this provides the name of the element, a dictionary containing the
|
|
|
|
* attributes (if any) and (where namespaces are used) the namespace
|
|
|
|
* information for the element.
|
|
|
|
*/
|
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
didStartElement: (NSString*)anElementName
|
|
|
|
namespaceURI: (NSString*)aNamespaceURI
|
|
|
|
qualifiedName: (NSString*)aQualifierName
|
|
|
|
attributes: (NSDictionary*)anAttributeDict;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
didStartMappingPrefix: (NSString*)aPrefix
|
|
|
|
toURI: (NSString*)aNamespaceURI;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
foundAttributeDeclarationWithName: (NSString*)anAttributeName
|
|
|
|
forElement: (NSString*)anElementName
|
|
|
|
type: (NSString*)aType
|
|
|
|
defaultValue: (NSString*)aDefaultValue;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
foundCDATA: (NSData*)aBlock;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
foundCharacters: (NSString*)aString;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
foundComment: (NSString*)aComment;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
foundElementDeclarationWithName: (NSString*)anElementName
|
|
|
|
model: (NSString*)aModel;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
foundExternalEntityDeclarationWithName: (NSString*)aName
|
|
|
|
publicID: (NSString*)aPublicID
|
|
|
|
systemID: (NSString*)aSystemID;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
foundIgnorableWhitespace: (NSString*)aWhitespaceString;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
foundInternalEntityDeclarationWithName: (NSString*)aName
|
|
|
|
value: (NSString*)aValue;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
foundNotationDeclarationWithName: (NSString*)aName
|
|
|
|
publicID: (NSString*)aPublicID
|
|
|
|
systemID: (NSString*)aSystemID;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
foundProcessingInstructionWithTarget: (NSString*)aTarget
|
|
|
|
data: (NSString*)aData;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
foundUnparsedEntityDeclarationWithName: (NSString*)aName
|
|
|
|
publicID: (NSString*)aPublicID
|
|
|
|
systemID: (NSString*)aSystemID
|
|
|
|
notationName: (NSString*)aNotationName;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
parseErrorOccurred: (NSError*)anError;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
|
|
|
*/
|
2004-10-20 10:48:04 +00:00
|
|
|
- (void) parser: (NSXMLParser*)aParser
|
|
|
|
validationErrorOccurred: (NSError*)anError;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
2004-10-20 10:48:04 +00:00
|
|
|
* Called when parsing ends.
|
|
|
|
*/
|
|
|
|
- (void) parserDidEndDocument: (NSXMLParser*)aParser;
|
|
|
|
|
2005-11-28 15:41:35 +00:00
|
|
|
/** <override-dummy />
|
2004-10-20 10:48:04 +00:00
|
|
|
* Called when parsing begins.
|
|
|
|
*/
|
|
|
|
- (void) parserDidStartDocument: (NSXMLParser*)aParser;
|
|
|
|
@end
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Provide the same error codes as MacOS-X, even if we don't use them all.
|
|
|
|
*/
|
2009-02-23 20:42:32 +00:00
|
|
|
enum {
|
2004-10-20 10:48:04 +00:00
|
|
|
NSXMLParserInternalError = 1,
|
|
|
|
NSXMLParserOutOfMemoryError = 2,
|
|
|
|
NSXMLParserDocumentStartError = 3,
|
|
|
|
NSXMLParserEmptyDocumentError = 4,
|
|
|
|
NSXMLParserPrematureDocumentEndError = 5,
|
|
|
|
NSXMLParserInvalidHexCharacterRefError = 6,
|
|
|
|
NSXMLParserInvalidDecimalCharacterRefError = 7,
|
|
|
|
NSXMLParserInvalidCharacterRefError = 8,
|
|
|
|
NSXMLParserInvalidCharacterError = 9,
|
|
|
|
NSXMLParserCharacterRefAtEOFError = 10,
|
|
|
|
NSXMLParserCharacterRefInPrologError = 11,
|
|
|
|
NSXMLParserCharacterRefInEpilogError = 12,
|
|
|
|
NSXMLParserCharacterRefInDTDError = 13,
|
|
|
|
NSXMLParserEntityRefAtEOFError = 14,
|
|
|
|
NSXMLParserEntityRefInPrologError = 15,
|
|
|
|
NSXMLParserEntityRefInEpilogError = 16,
|
|
|
|
NSXMLParserEntityRefInDTDError = 17,
|
|
|
|
NSXMLParserParsedEntityRefAtEOFError = 18,
|
|
|
|
NSXMLParserParsedEntityRefInPrologError = 19,
|
|
|
|
NSXMLParserParsedEntityRefInEpilogError = 20,
|
|
|
|
NSXMLParserParsedEntityRefInInternalSubsetError = 21,
|
|
|
|
NSXMLParserEntityReferenceWithoutNameError = 22,
|
|
|
|
NSXMLParserEntityReferenceMissingSemiError = 23,
|
|
|
|
NSXMLParserParsedEntityRefNoNameError = 24,
|
|
|
|
NSXMLParserParsedEntityRefMissingSemiError = 25,
|
|
|
|
NSXMLParserUndeclaredEntityError = 26,
|
|
|
|
NSXMLParserUnparsedEntityError = 28,
|
|
|
|
NSXMLParserEntityIsExternalError = 29,
|
|
|
|
NSXMLParserEntityIsParameterError = 30,
|
|
|
|
NSXMLParserUnknownEncodingError = 31,
|
|
|
|
NSXMLParserEncodingNotSupportedError = 32,
|
|
|
|
NSXMLParserStringNotStartedError = 33,
|
|
|
|
NSXMLParserStringNotClosedError = 34,
|
|
|
|
NSXMLParserNamespaceDeclarationError = 35,
|
|
|
|
NSXMLParserEntityNotStartedError = 36,
|
|
|
|
NSXMLParserEntityNotFinishedError = 37,
|
|
|
|
NSXMLParserLessThanSymbolInAttributeError = 38,
|
|
|
|
NSXMLParserAttributeNotStartedError = 39,
|
|
|
|
NSXMLParserAttributeNotFinishedError = 40,
|
|
|
|
NSXMLParserAttributeHasNoValueError = 41,
|
|
|
|
NSXMLParserAttributeRedefinedError = 42,
|
|
|
|
NSXMLParserLiteralNotStartedError = 43,
|
|
|
|
NSXMLParserLiteralNotFinishedError = 44,
|
|
|
|
NSXMLParserCommentNotFinishedError = 45,
|
|
|
|
NSXMLParserProcessingInstructionNotStartedError = 46,
|
|
|
|
NSXMLParserProcessingInstructionNotFinishedError = 47,
|
|
|
|
NSXMLParserNotationNotStartedError = 48,
|
|
|
|
NSXMLParserNotationNotFinishedError = 49,
|
|
|
|
NSXMLParserAttributeListNotStartedError = 50,
|
|
|
|
NSXMLParserAttributeListNotFinishedError = 51,
|
|
|
|
NSXMLParserMixedContentDeclNotStartedError = 52,
|
|
|
|
NSXMLParserMixedContentDeclNotFinishedError = 53,
|
|
|
|
NSXMLParserElementContentDeclNotStartedError = 54,
|
|
|
|
NSXMLParserElementContentDeclNotFinishedError = 55,
|
|
|
|
NSXMLParserXMLDeclNotStartedError = 56,
|
|
|
|
NSXMLParserXMLDeclNotFinishedError = 57,
|
|
|
|
NSXMLParserConditionalSectionNotStartedError = 58,
|
|
|
|
NSXMLParserConditionalSectionNotFinishedError = 59,
|
|
|
|
NSXMLParserExternalSubsetNotFinishedError = 60,
|
|
|
|
NSXMLParserDOCTYPEDeclNotFinishedError = 61,
|
|
|
|
NSXMLParserMisplacedCDATAEndStringError = 62,
|
|
|
|
NSXMLParserCDATANotFinishedError = 63,
|
|
|
|
NSXMLParserMisplacedXMLDeclarationError = 64,
|
|
|
|
NSXMLParserSpaceRequiredError = 65,
|
|
|
|
NSXMLParserSeparatorRequiredError = 66,
|
|
|
|
NSXMLParserNMTOKENRequiredError = 67,
|
|
|
|
NSXMLParserNAMERequiredError = 68,
|
|
|
|
NSXMLParserPCDATARequiredError = 69,
|
|
|
|
NSXMLParserURIRequiredError = 70,
|
|
|
|
NSXMLParserPublicIdentifierRequiredError = 71,
|
|
|
|
NSXMLParserLTRequiredError = 72,
|
|
|
|
NSXMLParserGTRequiredError = 73,
|
|
|
|
NSXMLParserLTSlashRequiredError = 74,
|
|
|
|
NSXMLParserEqualExpectedError = 75,
|
|
|
|
NSXMLParserTagNameMismatchError = 76,
|
|
|
|
NSXMLParserUnfinishedTagError = 77,
|
|
|
|
NSXMLParserStandaloneValueError = 78,
|
|
|
|
NSXMLParserInvalidEncodingNameError = 79,
|
|
|
|
NSXMLParserCommentContainsDoubleHyphenError = 80,
|
|
|
|
NSXMLParserInvalidEncodingError = 81,
|
|
|
|
NSXMLParserExternalStandaloneEntityError = 82,
|
|
|
|
NSXMLParserInvalidConditionalSectionError = 83,
|
|
|
|
NSXMLParserEntityValueRequiredError = 84,
|
|
|
|
NSXMLParserNotWellBalancedError = 85,
|
|
|
|
NSXMLParserExtraContentError = 86,
|
|
|
|
NSXMLParserInvalidCharacterInEntityError = 87,
|
|
|
|
NSXMLParserParsedEntityRefInInternalError = 88,
|
|
|
|
NSXMLParserEntityRefLoopError = 89,
|
|
|
|
NSXMLParserEntityBoundaryError = 90,
|
|
|
|
NSXMLParserInvalidURIError = 91,
|
|
|
|
NSXMLParserURIFragmentError = 92,
|
|
|
|
NSXMLParserNoDTDError = 94,
|
|
|
|
NSXMLParserDelegateAbortedParseError = 512
|
2009-02-23 20:42:32 +00:00
|
|
|
};
|
|
|
|
typedef NSUInteger NSXMLParserError;
|
2004-10-20 10:48:04 +00:00
|
|
|
|
2006-09-13 10:20:49 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2006-10-31 07:05:46 +00:00
|
|
|
#endif
|
|
|
|
#endif /* __NSXMLParser_h_GNUSTEP_BASE_INCLUDE */
|
|
|
|
|