Data Structures |
| struct | xmlDefAttrs |
Defines |
| #define | IN_LIBXML |
| #define | XML_DIR_SEP '/' |
| #define | XML_PARSER_BIG_ENTITY 1000 |
| #define | XML_PARSER_LOT_ENTITY 5000 |
| #define | XML_PARSER_NON_LINEAR 10 |
| #define | SAX2 1 |
| #define | XML_PARSER_BIG_BUFFER_SIZE 300 |
| #define | XML_PARSER_BUFFER_SIZE 100 |
| #define | SAX_COMPAT_MODE BAD_CAST "SAX compatibility mode document" |
| #define | RAW (*ctxt->input->cur) |
| #define | CUR (*ctxt->input->cur) |
| #define | NXT(val) ctxt->input->cur[(val)] |
| #define | CUR_PTR ctxt->input->cur |
| #define | CMP4(s, c1, c2, c3, c4) |
| #define | CMP5(s, c1, c2, c3, c4, c5) ( CMP4( s, c1, c2, c3, c4 ) && ((unsigned char *) s)[ 4 ] == c5 ) |
| #define | CMP6(s, c1, c2, c3, c4, c5, c6) ( CMP5( s, c1, c2, c3, c4, c5 ) && ((unsigned char *) s)[ 5 ] == c6 ) |
| #define | CMP7(s, c1, c2, c3, c4, c5, c6, c7) ( CMP6( s, c1, c2, c3, c4, c5, c6 ) && ((unsigned char *) s)[ 6 ] == c7 ) |
| #define | CMP8(s, c1, c2, c3, c4, c5, c6, c7, c8) ( CMP7( s, c1, c2, c3, c4, c5, c6, c7 ) && ((unsigned char *) s)[ 7 ] == c8 ) |
| #define | CMP9(s, c1, c2, c3, c4, c5, c6, c7, c8, c9) |
| #define | CMP10(s, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10) |
| #define | SKIP(val) |
| #define | SKIPL(val) |
| #define | SHRINK |
| #define | GROW |
| #define | SKIP_BLANKS xmlSkipBlankChars(ctxt) |
| #define | NEXT xmlNextChar(ctxt) |
| #define | NEXT1 |
| #define | NEXTL(l) |
| #define | CUR_CHAR(l) xmlCurrentChar(ctxt, &l) |
| #define | CUR_SCHAR(s, l) xmlStringCurrentChar(ctxt, s, &l) |
| #define | COPY_BUF(l, b, i, v) |
| #define | growBuffer(buffer, n) |
Typedefs |
| typedef xmlDefAttrs * | xmlDefAttrsPtr |
Functions |
| static void | xmlFatalErr (xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *info) |
| static int | xmlParserEntityCheck (xmlParserCtxtPtr ctxt, unsigned long size, xmlEntityPtr ent) |
| static void | xmlErrAttributeDup (xmlParserCtxtPtr ctxt, const xmlChar *prefix, const xmlChar *localname) |
| static void | xmlFatalErrMsg (xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *msg) |
| static void | xmlWarningMsg (xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *msg, const xmlChar *str1, const xmlChar *str2) |
| static void | xmlValidityError (xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *msg, const xmlChar *str1, const xmlChar *str2) |
| static void | xmlFatalErrMsgInt (xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *msg, int val) |
| static void | xmlFatalErrMsgStrIntStr (xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *msg, const xmlChar *str1, int val, const xmlChar *str2) |
| static void | xmlFatalErrMsgStr (xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *msg, const xmlChar *val) |
| static void | xmlErrMsgStr (xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *msg, const xmlChar *val) |
| static void | xmlNsErr (xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *msg, const xmlChar *info1, const xmlChar *info2, const xmlChar *info3) |
| static void | xmlNsWarn (xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *msg, const xmlChar *info1, const xmlChar *info2, const xmlChar *info3) |
| int | xmlHasFeature (xmlFeature feature) |
| static void | xmlDetectSAX2 (xmlParserCtxtPtr ctxt) |
| static xmlChar * | xmlAttrNormalizeSpace (const xmlChar *src, xmlChar *dst) |
| static const xmlChar * | xmlAttrNormalizeSpace2 (xmlParserCtxtPtr ctxt, xmlChar *src, int *len) |
| static void | xmlAddDefAttrs (xmlParserCtxtPtr ctxt, const xmlChar *fullname, const xmlChar *fullattr, const xmlChar *value) |
| static void | xmlAddSpecialAttr (xmlParserCtxtPtr ctxt, const xmlChar *fullname, const xmlChar *fullattr, int type) |
| static void | xmlCleanSpecialAttrCallback (void *payload, void *data, const xmlChar *fullname, const xmlChar *fullattr, const xmlChar *unused ATTRIBUTE_UNUSED) |
| static void | xmlCleanSpecialAttr (xmlParserCtxtPtr ctxt) |
| int | xmlCheckLanguageID (const xmlChar *lang) |
| static int | nsPush (xmlParserCtxtPtr ctxt, const xmlChar *prefix, const xmlChar *URL) |
| static int | nsPop (xmlParserCtxtPtr ctxt, int nr) |
| static int | xmlCtxtGrowAttrs (xmlParserCtxtPtr ctxt, int nr) |
| int | inputPush (xmlParserCtxtPtr ctxt, xmlParserInputPtr value) |
| xmlParserInputPtr | inputPop (xmlParserCtxtPtr ctxt) |
| int | nodePush (xmlParserCtxtPtr ctxt, xmlNodePtr value) |
| xmlNodePtr | nodePop (xmlParserCtxtPtr ctxt) |
| int | namePush (xmlParserCtxtPtr ctxt, const xmlChar *value) |
| const xmlChar * | namePop (xmlParserCtxtPtr ctxt) |
| static int | spacePush (xmlParserCtxtPtr ctxt, int val) |
| static int | spacePop (xmlParserCtxtPtr ctxt) |
| static void | xmlSHRINK (xmlParserCtxtPtr ctxt) |
| static void | xmlGROW (xmlParserCtxtPtr ctxt) |
| int | xmlSkipBlankChars (xmlParserCtxtPtr ctxt) |
| xmlChar | xmlPopInput (xmlParserCtxtPtr ctxt) |
| int | xmlPushInput (xmlParserCtxtPtr ctxt, xmlParserInputPtr input) |
| int | xmlParseCharRef (xmlParserCtxtPtr ctxt) |
| static int | xmlParseStringCharRef (xmlParserCtxtPtr ctxt, const xmlChar **str) |
| static void | deallocblankswrapper (xmlChar *str) |
| static xmlParserInputPtr | xmlNewBlanksWrapperInputStream (xmlParserCtxtPtr ctxt, xmlEntityPtr entity) |
| void | xmlParserHandlePEReference (xmlParserCtxtPtr ctxt) |
| xmlChar * | xmlStringLenDecodeEntities (xmlParserCtxtPtr ctxt, const xmlChar *str, int len, int what, xmlChar end, xmlChar end2, xmlChar end3) |
| xmlChar * | xmlStringDecodeEntities (xmlParserCtxtPtr ctxt, const xmlChar *str, int what, xmlChar end, xmlChar end2, xmlChar end3) |
| static int | areBlanks (xmlParserCtxtPtr ctxt, const xmlChar *str, int len, int blank_chars) |
|
xmlParseElementContentDecl: : an XML parser context
- Returns:
- : the Element Content pointer will be stored here if any
parse the declaration for an Element content either Mixed or Children, the cases EMPTY and ANY are handled directly in xmlParseElementDecl
[46] contentspec ::= 'EMPTY' | 'ANY' | Mixed | children
returns: the type of element content XML_ELEMENT_TYPE_xxx
|
| static xmlEntityPtr | xmlParseStringPEReference (xmlParserCtxtPtr ctxt, const xmlChar **str) |
| static int | xmlLoadEntityContent (xmlParserCtxtPtr ctxt, xmlEntityPtr entity) |
| static xmlEntityPtr | xmlParseStringEntityRef (xmlParserCtxtPtr ctxt, const xmlChar **str) |
| int | xmlParseElementContentDecl (xmlParserCtxtPtr ctxt, const xmlChar *name, xmlElementContentPtr *result) |
| int | xmlParseElementDecl (xmlParserCtxtPtr ctxt) |
| static void | xmlParseConditionalSections (xmlParserCtxtPtr ctxt) |
| void | xmlParseMarkupDecl (xmlParserCtxtPtr ctxt) |
| void | xmlParseTextDecl (xmlParserCtxtPtr ctxt) |
| void | xmlParseExternalSubset (xmlParserCtxtPtr ctxt, const xmlChar *ExternalID, const xmlChar *SystemID) |
| void | xmlParseReference (xmlParserCtxtPtr ctxt) |
| xmlEntityPtr | xmlParseEntityRef (xmlParserCtxtPtr ctxt) |
| void | xmlParsePEReference (xmlParserCtxtPtr ctxt) |
| void | xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt) |
| static void | xmlParseInternalSubset (xmlParserCtxtPtr ctxt) |
| static const xmlChar * | xmlGetNamespace (xmlParserCtxtPtr ctxt, const xmlChar *prefix) |
| static const xmlChar * | xmlParseQName (xmlParserCtxtPtr ctxt, const xmlChar **prefix) |
Variables |
| unsigned int | xmlParserMaxDepth = 256 |
| static const char * | xmlW3CPIs [] |
: an XML parser context |
xmlSplitQName: : an XML parser context
: a xmlChar **
parse an UTF8 encoded XML qualified name string
[NS 5] QName ::= (Prefix ':')? LocalPart
[NS 6] Prefix ::= NCName
[NS 7] LocalPart ::= NCName
Returns the local part, and prefix is updated to get the Prefix if any.
|
| static const unsigned char | test_char_data [256] |
| xmlChar * | xmlSplitQName (xmlParserCtxtPtr ctxt, const xmlChar *name, xmlChar **prefix) |
| static int | xmlIsNameStartChar (xmlParserCtxtPtr ctxt, int c) |
| static int | xmlIsNameChar (xmlParserCtxtPtr ctxt, int c) |
| static xmlChar * | xmlParseAttValueInternal (xmlParserCtxtPtr ctxt, int *len, int *alloc, int normalize) |
| static const xmlChar * | xmlParseNameComplex (xmlParserCtxtPtr ctxt) |
| const xmlChar * | xmlParseName (xmlParserCtxtPtr ctxt) |
| static const xmlChar * | xmlParseNCNameComplex (xmlParserCtxtPtr ctxt) |
| static const xmlChar * | xmlParseNCName (xmlParserCtxtPtr ctxt) |
| static const xmlChar * | xmlParseNameAndCompare (xmlParserCtxtPtr ctxt, xmlChar const *other) |
| static xmlChar * | xmlParseStringName (xmlParserCtxtPtr ctxt, const xmlChar **str) |
| xmlChar * | xmlParseNmtoken (xmlParserCtxtPtr ctxt) |
| xmlChar * | xmlParseEntityValue (xmlParserCtxtPtr ctxt, xmlChar **orig) |
| static xmlChar * | xmlParseAttValueComplex (xmlParserCtxtPtr ctxt, int *attlen, int normalize) |
| xmlChar * | xmlParseAttValue (xmlParserCtxtPtr ctxt) |
| xmlChar * | xmlParseSystemLiteral (xmlParserCtxtPtr ctxt) |
| xmlChar * | xmlParsePubidLiteral (xmlParserCtxtPtr ctxt) |
| static void | xmlParseCharDataComplex (xmlParserCtxtPtr ctxt, int cdata) |
| void | xmlParseCharData (xmlParserCtxtPtr ctxt, int cdata) |
| xmlChar * | xmlParseExternalID (xmlParserCtxtPtr ctxt, xmlChar **publicID, int strict) |
| static void | xmlParseCommentComplex (xmlParserCtxtPtr ctxt, xmlChar *buf, int len, int size) |
| void | xmlParseComment (xmlParserCtxtPtr ctxt) |
| const xmlChar * | xmlParsePITarget (xmlParserCtxtPtr ctxt) |
| void | xmlParsePI (xmlParserCtxtPtr ctxt) |
| void | xmlParseNotationDecl (xmlParserCtxtPtr ctxt) |
| void | xmlParseEntityDecl (xmlParserCtxtPtr ctxt) |
| int | xmlParseDefaultDecl (xmlParserCtxtPtr ctxt, xmlChar **value) |
| xmlEnumerationPtr | xmlParseNotationType (xmlParserCtxtPtr ctxt) |
| xmlEnumerationPtr | xmlParseEnumerationType (xmlParserCtxtPtr ctxt) |
| int | xmlParseEnumeratedType (xmlParserCtxtPtr ctxt, xmlEnumerationPtr *tree) |
| int | xmlParseAttributeType (xmlParserCtxtPtr ctxt, xmlEnumerationPtr *tree) |
| void | xmlParseAttributeListDecl (xmlParserCtxtPtr ctxt) |
| xmlElementContentPtr | xmlParseElementMixedContentDecl (xmlParserCtxtPtr ctxt, int inputchk) |
| static xmlElementContentPtr | xmlParseElementChildrenContentDeclPriv (xmlParserCtxtPtr ctxt, int inputchk, int depth) |
| xmlElementContentPtr | xmlParseElementChildrenContentDecl (xmlParserCtxtPtr ctxt, int inputchk) |
: the localname |
xmlParseQNameAndCompare: : an XML parser context
: the prefix, if any.
parse an XML name and compares for match (specialized for endtag parsing)
Returns NULL for an illegal name, (xmlChar*) 1 for success and the name for mismatch
|
| #define | DICT_FREE(str) |
| #define | bottom_parser |
| static int | xmlParserInitialized = 0 |
| static xmlParserCtxtPtr | xmlCreateEntityParserCtxtInternal (const xmlChar *URL, const xmlChar *ID, const xmlChar *base, xmlParserCtxtPtr pctx) |
| static xmlParserErrors | xmlParseExternalEntityPrivate (xmlDocPtr doc, xmlParserCtxtPtr oldctxt, xmlSAXHandlerPtr sax, void *user_data, int depth, const xmlChar *URL, const xmlChar *ID, xmlNodePtr *list) |
| static int | xmlCtxtUseOptionsInternal (xmlParserCtxtPtr ctxt, int options, const char *encoding) |
| static xmlParserErrors | xmlParseBalancedChunkMemoryInternal (xmlParserCtxtPtr oldctxt, const xmlChar *string, void *user_data, xmlNodePtr *lst) |
| static const xmlChar * | xmlParseQNameAndCompare (xmlParserCtxtPtr ctxt, xmlChar const *name, xmlChar const *prefix) |
| static const xmlChar * | xmlParseAttribute2 (xmlParserCtxtPtr ctxt, const xmlChar *pref, const xmlChar *elem, const xmlChar **prefix, xmlChar **value, int *len, int *alloc) |
| static const xmlChar * | xmlParseStartTag2 (xmlParserCtxtPtr ctxt, const xmlChar **pref, const xmlChar **URI, int *tlen) |
| static void | xmlParseEndTag2 (xmlParserCtxtPtr ctxt, const xmlChar *prefix, const xmlChar *URI, int line, int nsNr, int tlen) |
| void | xmlParseCDSect (xmlParserCtxtPtr ctxt) |
| void | xmlParseContent (xmlParserCtxtPtr ctxt) |
| void | xmlParseElement (xmlParserCtxtPtr ctxt) |
| xmlChar * | xmlParseVersionNum (xmlParserCtxtPtr ctxt) |
| xmlChar * | xmlParseVersionInfo (xmlParserCtxtPtr ctxt) |
| xmlChar * | xmlParseEncName (xmlParserCtxtPtr ctxt) |
| const xmlChar * | xmlParseEncodingDecl (xmlParserCtxtPtr ctxt) |
| int | xmlParseSDDecl (xmlParserCtxtPtr ctxt) |
| void | xmlParseXMLDecl (xmlParserCtxtPtr ctxt) |
| void | xmlParseMisc (xmlParserCtxtPtr ctxt) |
| int | xmlParseDocument (xmlParserCtxtPtr ctxt) |
| int | xmlParseExtParsedEnt (xmlParserCtxtPtr ctxt) |
| void | xmlStopParser (xmlParserCtxtPtr ctxt) |
| xmlParserCtxtPtr | xmlCreateIOParserCtxt (xmlSAXHandlerPtr sax, void *user_data, xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void *ioctx, xmlCharEncoding enc) |
| int | xmlParseCtxtExternalEntity (xmlParserCtxtPtr ctx, const xmlChar *URL, const xmlChar *ID, xmlNodePtr *lst) |
| xmlParserErrors | xmlParseInNodeContext (xmlNodePtr node, const char *data, int datalen, int options, xmlNodePtr *lst) |
| xmlParserCtxtPtr | xmlCreateEntityParserCtxt (const xmlChar *URL, const xmlChar *ID, const xmlChar *base) |
| xmlParserCtxtPtr | xmlCreateURLParserCtxt (const char *filename, int options) |
| xmlParserCtxtPtr | xmlCreateFileParserCtxt (const char *filename) |
| xmlParserCtxtPtr | xmlCreateMemoryParserCtxt (const char *buffer, int size) |
| xmlParserCtxtPtr | xmlCreateDocParserCtxt (const xmlChar *cur) |
| void XMLCDECL | xmlGenericErrorDefaultFunc (void *ctx, const char *msg,...) |
| void | xmlInitParser (void) |
| void | xmlCleanupParser (void) |
| void | xmlCtxtReset (xmlParserCtxtPtr ctxt) |
| int | xmlCtxtResetPush (xmlParserCtxtPtr ctxt, const char *chunk, int size, const char *filename, const char *encoding) |
| int | xmlCtxtUseOptions (xmlParserCtxtPtr ctxt, int options) |
| static xmlDocPtr | xmlDoRead (xmlParserCtxtPtr ctxt, const char *URL, const char *encoding, int options, int reuse) |
| xmlDocPtr | xmlReadDoc (const xmlChar *cur, const char *URL, const char *encoding, int options) |
| xmlDocPtr | xmlReadFile (const char *filename, const char *encoding, int options) |
| xmlDocPtr | xmlReadMemory (const char *buffer, int size, const char *URL, const char *encoding, int options) |
| xmlDocPtr | xmlReadFd (int fd, const char *URL, const char *encoding, int options) |
| xmlDocPtr | xmlReadIO (xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void *ioctx, const char *URL, const char *encoding, int options) |
| xmlDocPtr | xmlCtxtReadDoc (xmlParserCtxtPtr ctxt, const xmlChar *cur, const char *URL, const char *encoding, int options) |
| xmlDocPtr | xmlCtxtReadFile (xmlParserCtxtPtr ctxt, const char *filename, const char *encoding, int options) |
| xmlDocPtr | xmlCtxtReadMemory (xmlParserCtxtPtr ctxt, const char *buffer, int size, const char *URL, const char *encoding, int options) |
| xmlDocPtr | xmlCtxtReadFd (xmlParserCtxtPtr ctxt, int fd, const char *URL, const char *encoding, int options) |
| xmlDocPtr | xmlCtxtReadIO (xmlParserCtxtPtr ctxt, xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void *ioctx, const char *URL, const char *encoding, int options) |