Lines Matching defs:parser
7 |_| XML parser
188 XML_SetElementDeclHandler(XML_Parser parser, XML_ElementDeclHandler eldecl);
203 XML_SetAttlistDeclHandler(XML_Parser parser, XML_AttlistDeclHandler attdecl);
219 XML_SetXmlDeclHandler(XML_Parser parser, XML_XmlDeclHandler xmldecl);
227 /* Constructs a new parser; encoding is the encoding specified by the
233 /* Constructs a new parser and namespace processor. Element type
258 /* Constructs a new parser using the memory management suite referred to
260 suite. If namespaceSeparator is non-NULL it creates a parser with
264 All further memory operations used for the created parser will come from
272 /* Prepare a parser object to be re-used. This is particularly
275 All handlers are cleared from the parser, except for the
276 unknownEncodingHandler. The parser's external state is re-initialized
282 XML_ParserReset(XML_Parser parser, const XML_Char *encoding);
365 XML_SetEntityDeclHandler(XML_Parser parser, XML_EntityDeclHandler handler);
407 then processing will not continue, and the parser will return a
420 The parser argument is the parser parsing the entity containing the
421 reference; it can be passed as the parser argument to
443 entity. In this case the calling parser will return an
446 Note that unlike other handlers the first argument is the parser,
449 typedef int(XMLCALL *XML_ExternalEntityRefHandler)(XML_Parser parser,
470 provide information to the parser about encodings that are unknown
471 to the parser.
495 When the parser is finished with the encoding, then if release is
528 /* This is called for an encoding that is unknown to the parser.
540 If info does not describe a suitable encoding, then the parser will
548 XML_SetElementHandler(XML_Parser parser, XML_StartElementHandler start,
552 XML_SetStartElementHandler(XML_Parser parser, XML_StartElementHandler handler);
555 XML_SetEndElementHandler(XML_Parser parser, XML_EndElementHandler handler);
558 XML_SetCharacterDataHandler(XML_Parser parser,
562 XML_SetProcessingInstructionHandler(XML_Parser parser,
565 XML_SetCommentHandler(XML_Parser parser, XML_CommentHandler handler);
568 XML_SetCdataSectionHandler(XML_Parser parser,
573 XML_SetStartCdataSectionHandler(XML_Parser parser,
577 XML_SetEndCdataSectionHandler(XML_Parser parser,
585 XML_SetDefaultHandler(XML_Parser parser, XML_DefaultHandler handler);
592 XML_SetDefaultHandlerExpand(XML_Parser parser, XML_DefaultHandler handler);
595 XML_SetDoctypeDeclHandler(XML_Parser parser, XML_StartDoctypeDeclHandler start,
599 XML_SetStartDoctypeDeclHandler(XML_Parser parser,
603 XML_SetEndDoctypeDeclHandler(XML_Parser parser, XML_EndDoctypeDeclHandler end);
606 XML_SetUnparsedEntityDeclHandler(XML_Parser parser,
610 XML_SetNotationDeclHandler(XML_Parser parser, XML_NotationDeclHandler handler);
613 XML_SetNamespaceDeclHandler(XML_Parser parser,
618 XML_SetStartNamespaceDeclHandler(XML_Parser parser,
622 XML_SetEndNamespaceDeclHandler(XML_Parser parser,
626 XML_SetNotStandaloneHandler(XML_Parser parser,
630 XML_SetExternalEntityRefHandler(XML_Parser parser,
635 instead of the parser object.
638 XML_SetExternalEntityRefHandlerArg(XML_Parser parser, void *arg);
641 XML_SetSkippedEntityHandler(XML_Parser parser,
645 XML_SetUnknownEncodingHandler(XML_Parser parser,
654 XML_DefaultCurrent(XML_Parser parser);
659 the separator character specified when the parser was created: URI
671 XML_SetReturnNSTriplet(XML_Parser parser, int do_nst);
675 XML_SetUserData(XML_Parser parser, void *userData);
678 #define XML_GetUserData(parser) (*(void **)(parser))
687 XML_SetEncoding(XML_Parser parser, const XML_Char *encoding);
689 /* If this function is called, then the parser will be passed as the
694 XML_UseParserAsHandlerArg(XML_Parser parser);
696 /* If useDTD == XML_TRUE is passed to this function, then the parser
698 specified in the document. In such a case the parser will call the
702 useDTD == XML_TRUE will make the parser behave as if the document
713 Note: If parser == NULL, returns XML_ERROR_INVALID_ARGUMENT.
716 XML_UseForeignDTD(XML_Parser parser, XML_Bool useDTD);
727 XML_SetBase(XML_Parser parser, const XML_Char *base);
730 XML_GetBase(XML_Parser parser);
736 XML_StartElementHandler. Returns -1 if parser == NULL.
739 XML_GetSpecifiedAttributeCount(XML_Parser parser);
743 parser == NULL. Each attribute/value pair counts as 2; thus this
748 XML_GetIdAttributeIndex(XML_Parser parser);
767 XML_GetSpecifiedAttributeCount(parser) / 2.
770 XML_GetAttributeInfo(XML_Parser parser);
783 XML_Parse(XML_Parser parser, const char *s, int len, int isFinal);
786 XML_GetBuffer(XML_Parser parser, int len);
789 XML_ParseBuffer(XML_Parser parser, int len, int isFinal);
793 (resumable = 0) an already suspended parser. Some call-backs may
804 - XML_ERROR_SUSPENDED: when suspending an already suspended parser.
805 - XML_ERROR_FINISHED: when the parser has already finished.
814 This will be applied to the current parser instance only, that is, if
815 there is a parent parser then it will continue parsing when the
818 parser (recursively), if one wants to stop parsing altogether.
823 XML_StopParser(XML_Parser parser, XML_Bool resumable);
831 This must be called on the most deeply nested child parser instance
832 first, and on its parent parser only after the child parser has finished,
833 to be applied recursively until the document entity's parser is restarted.
834 That is, the parent parser will not resume by itself and it is up to the
838 XML_ResumeParser(XML_Parser parser);
847 /* Returns status of parser with respect to being initialized, parsing,
853 XML_GetParsingStatus(XML_Parser parser, XML_ParsingStatus *status);
865 an ExternalEntityRefHandler so longer as the parser has not yet
866 been freed. The new parser is completely independent and may
868 initialized from the parser argument. Returns NULL if out of memory.
872 XML_ExternalEntityParserCreate(XML_Parser parser, const XML_Char *context,
893 XML_ExternalEntityParserCreate has been called to create the parser
895 call), it is illegal to make any calls on the old parser until
896 XML_ParserFree has been called on the newly created parser.
903 Note: If parser == NULL, the function will do nothing and return 0.
906 XML_SetParamEntityParsing(XML_Parser parser,
913 Note: If parser == NULL, the function will do nothing and return 0.
916 XML_SetHashSalt(XML_Parser parser, unsigned long hash_salt);
922 XML_GetErrorCode(XML_Parser parser);
944 XMLPARSEAPI(XML_Size) XML_GetCurrentLineNumber(XML_Parser parser);
945 XMLPARSEAPI(XML_Size) XML_GetCurrentColumnNumber(XML_Parser parser);
946 XMLPARSEAPI(XML_Index) XML_GetCurrentByteIndex(XML_Parser parser);
952 XML_GetCurrentByteCount(XML_Parser parser);
965 XML_GetInputContext(XML_Parser parser, int *offset, int *size);
974 XML_FreeContentModel(XML_Parser parser, XML_Content *model);
980 XML_MemMalloc(XML_Parser parser, size_t size);
984 XML_MemRealloc(XML_Parser parser, void *ptr, size_t size);
987 XML_MemFree(XML_Parser parser, void *ptr);
989 /* Frees memory used by the parser. */
991 XML_ParserFree(XML_Parser parser);
1045 XML_Parser parser, float maximumAmplificationFactor);
1050 XML_Parser parser, unsigned long long activationThresholdBytes);