Lines Matching defs:parser
7 |_| XML parser
78 XML_Parser parser;
82 static int processStream(const XML_Char *filename, XML_Parser parser);
85 reportError(XML_Parser parser, const XML_Char *filename) {
86 enum XML_Error code = XML_GetErrorCode(parser);
92 filename, XML_GetErrorLineNumber(parser),
93 XML_GetErrorColumnNumber(parser), message);
103 XML_Parser parser = ((PROCESS_ARGS *)args)->parser;
105 if (XML_Parse(parser, (const char *)data, (int)size, 1) == XML_STATUS_ERROR) {
106 reportError(parser, filename);
150 externalEntityRefFilemap(XML_Parser parser, const XML_Char *context,
156 XML_Parser entParser = XML_ExternalEntityParserCreate(parser, context, 0);
161 args.parser = entParser;
183 processStream(const XML_Char *filename, XML_Parser parser) {
196 char *buf = (char *)XML_GetBuffer(parser, g_read_size_bytes);
211 if (XML_ParseBuffer(parser, nread, nread == 0) == XML_STATUS_ERROR) {
212 reportError(parser, filename != NULL ? filename : T("STDIN"));
228 externalEntityRefStream(XML_Parser parser, const XML_Char *context,
234 XML_Parser entParser = XML_ExternalEntityParserCreate(parser, context, 0);
245 XML_ProcessFile(XML_Parser parser, const XML_Char *filename, unsigned flags) {
248 if (! XML_SetBase(parser, filename)) {
254 XML_SetExternalEntityRefHandler(parser, (flags & XML_MAP_FILE)
261 args.parser = parser;
272 result = processStream(filename, parser);
276 result = processStream(filename, parser);