Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 1 | /* |
| 2 | * parserInternals.h : internals routines exported by the parser. |
| 3 | * |
| 4 | * See Copyright for the status of this software. |
| 5 | * |
| 6 | * Daniel.Veillard@w3.org |
| 7 | */ |
| 8 | |
| 9 | #ifndef __XML_PARSER_INTERNALS_H__ |
| 10 | #define __XML_PARSER_INTERNALS_H__ |
| 11 | |
| 12 | #include "parser.h" |
| 13 | |
| 14 | #ifdef __cplusplus |
| 15 | extern "C" { |
| 16 | #endif |
| 17 | |
| 18 | /* |
Daniel Veillard | d692aa4 | 1999-02-28 21:54:31 +0000 | [diff] [blame^] | 19 | * Parser context |
| 20 | */ |
| 21 | xmlParserCtxtPtr |
| 22 | xmlCreateDocParserCtxt(CHAR *cur); |
| 23 | xmlParserCtxtPtr |
| 24 | xmlCreateFileParserCtxt(const char *filename); |
| 25 | xmlParserCtxtPtr |
| 26 | xmlCreateMemoryParserCtxt(char *buffer, int size); |
| 27 | void |
| 28 | xmlFreeParserCtxt(xmlParserCtxtPtr ctxt); |
| 29 | |
| 30 | /* |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 31 | * Entities |
| 32 | */ |
| 33 | void |
| 34 | xmlHandleEntity(xmlParserCtxtPtr ctxt, xmlEntityPtr entity); |
| 35 | |
| 36 | /* |
| 37 | * Namespaces. |
| 38 | */ |
| 39 | CHAR * |
| 40 | xmlNamespaceParseNCName(xmlParserCtxtPtr ctxt); |
| 41 | CHAR * |
| 42 | xmlNamespaceParseQName(xmlParserCtxtPtr ctxt, CHAR **prefix); |
| 43 | CHAR * |
| 44 | xmlNamespaceParseNSDef(xmlParserCtxtPtr ctxt); |
| 45 | CHAR * |
| 46 | xmlParseQuotedString(xmlParserCtxtPtr ctxt); |
| 47 | void |
| 48 | xmlParseNamespace(xmlParserCtxtPtr ctxt); |
| 49 | |
| 50 | /* |
| 51 | * Generic production rules |
| 52 | */ |
| 53 | CHAR * |
| 54 | xmlParseName(xmlParserCtxtPtr ctxt); |
| 55 | CHAR * |
| 56 | xmlParseNmtoken(xmlParserCtxtPtr ctxt); |
| 57 | CHAR * |
| 58 | xmlParseEntityValue(xmlParserCtxtPtr ctxt); |
| 59 | CHAR * |
| 60 | xmlParseAttValue(xmlParserCtxtPtr ctxt); |
| 61 | CHAR * |
| 62 | xmlParseSystemLiteral(xmlParserCtxtPtr ctxt); |
| 63 | CHAR * |
| 64 | xmlParsePubidLiteral(xmlParserCtxtPtr ctxt); |
| 65 | void |
| 66 | xmlParseCharData(xmlParserCtxtPtr ctxt, int cdata); |
| 67 | CHAR * |
| 68 | xmlParseExternalID(xmlParserCtxtPtr ctxt, CHAR **publicID, int strict); |
| 69 | xmlNodePtr |
| 70 | xmlParseComment(xmlParserCtxtPtr ctxt, int create); |
| 71 | CHAR * |
| 72 | xmlParsePITarget(xmlParserCtxtPtr ctxt); |
| 73 | void |
| 74 | xmlParsePI(xmlParserCtxtPtr ctxt); |
| 75 | void |
| 76 | xmlParseNotationDecl(xmlParserCtxtPtr ctxt); |
| 77 | void |
| 78 | xmlParseEntityDecl(xmlParserCtxtPtr ctxt); |
| 79 | int |
| 80 | xmlParseDefaultDecl(xmlParserCtxtPtr ctxt, CHAR **value); |
| 81 | xmlEnumerationPtr |
| 82 | xmlParseNotationType(xmlParserCtxtPtr ctxt); |
| 83 | xmlEnumerationPtr |
| 84 | xmlParseEnumerationType(xmlParserCtxtPtr ctxt); |
| 85 | int |
| 86 | xmlParseEnumeratedType(xmlParserCtxtPtr ctxt, xmlEnumerationPtr *tree); |
| 87 | int |
| 88 | xmlParseAttributeType(xmlParserCtxtPtr ctxt, xmlEnumerationPtr *tree); |
| 89 | void |
| 90 | xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt); |
| 91 | xmlElementContentPtr |
| 92 | xmlParseElementMixedContentDecl(xmlParserCtxtPtr ctxt); |
| 93 | xmlElementContentPtr |
| 94 | xmlParseElementChildrenContentDecl(xmlParserCtxtPtr ctxt); |
| 95 | int |
| 96 | xmlParseElementContentDecl(xmlParserCtxtPtr ctxt, CHAR *name, |
| 97 | xmlElementContentPtr *result); |
| 98 | int |
| 99 | xmlParseElementDecl(xmlParserCtxtPtr ctxt); |
| 100 | void |
| 101 | xmlParseMarkupDecl(xmlParserCtxtPtr ctxt); |
| 102 | CHAR * |
| 103 | xmlParseCharRef(xmlParserCtxtPtr ctxt); |
| 104 | CHAR * |
| 105 | xmlParseEntityRef(xmlParserCtxtPtr ctxt); |
| 106 | CHAR * |
| 107 | xmlParseReference(xmlParserCtxtPtr ctxt); |
| 108 | CHAR * |
| 109 | xmlParsePEReference(xmlParserCtxtPtr ctxt); |
| 110 | void |
| 111 | xmlParseDocTypeDecl(xmlParserCtxtPtr ctxt); |
| 112 | xmlAttrPtr |
| 113 | xmlParseAttribute(xmlParserCtxtPtr ctxt, xmlNodePtr node); |
| 114 | xmlNodePtr |
| 115 | xmlParseStartTag(xmlParserCtxtPtr ctxt); |
| 116 | void |
| 117 | xmlParseEndTag(xmlParserCtxtPtr ctxt, xmlNsPtr *nsPtr, CHAR **tagPtr); |
| 118 | void |
| 119 | xmlParseCDSect(xmlParserCtxtPtr ctxt); |
| 120 | void |
| 121 | xmlParseContent(xmlParserCtxtPtr ctxt); |
| 122 | xmlNodePtr |
| 123 | xmlParseElement(xmlParserCtxtPtr ctxt); |
| 124 | CHAR * |
| 125 | xmlParseVersionNum(xmlParserCtxtPtr ctxt); |
| 126 | CHAR * |
| 127 | xmlParseVersionInfo(xmlParserCtxtPtr ctxt); |
| 128 | CHAR * |
| 129 | xmlParseEncName(xmlParserCtxtPtr ctxt); |
| 130 | CHAR * |
| 131 | xmlParseEncodingDecl(xmlParserCtxtPtr ctxt); |
| 132 | int |
| 133 | xmlParseSDDecl(xmlParserCtxtPtr ctxt); |
| 134 | void |
| 135 | xmlParseXMLDecl(xmlParserCtxtPtr ctxt); |
| 136 | void |
| 137 | xmlParseMisc(xmlParserCtxtPtr ctxt); |
| 138 | |
| 139 | |
| 140 | #endif /* __XML_PARSER_INTERNALS_H__ */ |