19 #import "OFXMLAttribute.h"
30 #ifndef OF_XML_PARSER_M
35 #ifdef OF_HAVE_OPTIONAL_PROTOCOLS
46 foundProcessingInstructions: (
OFString*)pi;
63 attributes: (
OFArray*)attributes;
88 foundCharacters: (
OFString*)characters;
121 foundUnknownEntityNamed: (
OFString*)entity;
134 OF_XMLPARSER_OUTSIDE_TAG,
135 OF_XMLPARSER_TAG_OPENED,
136 OF_XMLPARSER_IN_PROCESSING_INSTRUCTIONS,
137 OF_XMLPARSER_IN_TAG_NAME,
138 OF_XMLPARSER_IN_CLOSE_TAG_NAME,
140 OF_XMLPARSER_IN_ATTR_NAME,
141 OF_XMLPARSER_EXPECT_DELIM,
142 OF_XMLPARSER_IN_ATTR_VALUE,
143 OF_XMLPARSER_EXPECT_CLOSE,
144 OF_XMLPARSER_EXPECT_SPACE_OR_CLOSE,
145 OF_XMLPARSER_IN_EXCLAMATIONMARK,
146 OF_XMLPARSER_IN_CDATA_OPENING,
147 OF_XMLPARSER_IN_CDATA_1,
148 OF_XMLPARSER_IN_CDATA_2,
149 OF_XMLPARSER_IN_COMMENT_OPENING,
150 OF_XMLPARSER_IN_COMMENT_1,
151 OF_XMLPARSER_IN_COMMENT_2,
152 OF_XMLPARSER_IN_DOCTYPE,
153 OF_XMLPARSER_NUM_STATES
167 BOOL lastCarriageReturn;
169 of_string_encoding_t encoding;
172 #ifdef OF_HAVE_PROPERTIES
173 @property (assign) id <OFXMLParserDelegate> delegate;
181 + (instancetype)parser;
203 - (void)parseBuffer: (const
char*)buffer
204 length: (
size_t)length;
211 - (void)parseString: (
OFString*)string;
218 - (void)parseStream: (
OFStream*)stream;
232 - (size_t)lineNumber;
239 - (BOOL)finishedParsing;