From 17049f05f9ef09b3dc2a9c5d1de3f21de7c03193 Mon Sep 17 00:00:00 2001
From: Mike Hommey parserInternals - internals routines exported by the parser. this module exports a number of internal parsing routines they are not really all intended for applications but can prove useful doing low level processing. Author(s): Daniel Veillard The parser tries to always have that amount of input ready. One of the point is providing context when reporting errors. Macro to check the following production in the XML spec: [85] BaseChar ::= ... long list see REC ... Macro to check the following production in the XML spec: [3] S ::= (#x20 | #x9 | #xD | #xA)+ Behaviour same as IS_BLANK Macro to check the following production in the XML spec: [2] Char ::= #x9 | #xA | #xD | [#x20...] any byte character in the accepted range Macro to check the following production in the XML spec: [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. Behaves like IS_CHAR on single-byte value Macro to check the following production in the XML spec: [87] CombiningChar ::= ... long list see REC ... Always false (all combining chars > 0xff) Macro to check the following production in the XML spec: [88] Digit ::= ... long list see REC ... Behaves like IS_DIGIT but with a single byte argument Macro to check the following production in the XML spec: [89] Extender ::= #x00B7 | #x02D0 | #x02D1 | #x0387 | #x0640 | #x0E46 | #x0EC6 | #x3005 | [#x3031-#x3035] | [#x309D-#x309E] | [#x30FC-#x30FE] Behaves like IS_EXTENDER but with a single-byte argument Macro to check the following production in the XML spec: [86] Ideographic ::= [#x4E00-#x9FA5] | #x3007 | [#x3021-#x3029] Macro to check the following production in the XML spec: [84] Letter ::= BaseChar | Ideographic Macro behaves like IS_LETTER, but only check base chars Macro to check the following production in the XML spec: [13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%] Same as IS_PUBIDCHAR but for single-byte value Skips to the next '>' char. Skips to the next '<' char. Identifiers can be longer, but this will be more costly at runtime. Both general and parameter entities need to be substituted. Whether parameter entities need to be substituted. Whether general entities need to be substituted. Callback function used when one needs to be able to track back the provenance of a chunk of nodes inherited from an entity replacement. Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. Initialize the htmlStartCloseIndex for fast lookup of closing tags names. This is not reentrant. Call xmlInitParser() once before processing in case of use in multithreaded programs. Pops the top parser input from the input stack Pushes a new parser input on top of the input stack Pops the top element name from the name stack Pushes a new element name on top of the name stack Pops the top element node from the node stack Pushes a new element node on top of the node stack Checks that the value conforms to the LanguageID production: NOTE: this is somewhat deprecated, those productions were removed from the XML Second edition. [33] LanguageID ::= Langcode ('-' Subcode)* [34] Langcode ::= ISO639Code | IanaCode | UserCode [35] ISO639Code ::= ([a-z] | [A-Z]) ([a-z] | [A-Z]) [36] IanaCode ::= ('i' | 'I') '-' ([a-z] | [A-Z])+ [37] UserCode ::= ('x' | 'X') '-' ([a-z] | [A-Z])+ [38] Subcode ::= ([a-z] | [A-Z])+ append the char value in the array append the char value in the array Create a parser context for an external entity Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. Create a parser context for an XML in-memory document. Create a parser context for a file or URL content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time and for file accesses The current char value, if using UTF-8 this may actually span multiple bytes in the input buffer. Implement the end of line normalization: 2.11 End-of-Line Handling Wherever an external parsed entity or the literal entity value of an internal parsed entity contains either the literal two-character sequence "#xD#xA" or a standalone literal #xD, an XML processor must pass to the application the single character #xA. This behavior can conveniently be produced by normalizing all line breaks to #xA on input, before parsing.) This function is deprecated, we now always process entities content through xmlStringDecodeEntities TODO: remove it in next major release. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';' Handle a redefinition of attribute error Free up an input stream. Default handling of defined entities, when should we define a new input stream ? When do we just handle that as a set of chars ? OBSOLETE: to be removed at some point. Check whether the character is allowed by the production [84] Letter ::= BaseChar | Ideographic parse an XML namespace name. TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. [NS 3] NCName ::= (Letter | '_') (NCNameChar)* [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender parse a namespace prefix declaration TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. [NS 1] NSDef ::= PrefixDef Eq SystemLiteral [NS 2] PrefixDef ::= 'xmlns' (':' NCName)? TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. parse an XML qualified name [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName Create a new input stream based on an xmlEntityPtr Create a new input stream based on a file or an URL. Create a new input stream structure Create a new input stream based on a memory buffer. Skip to the next char input char. parse a value for an attribute Note: the parser won't do substitution of entities here, this will be handled later in xmlStringGetNodeList [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'" 3.3.3 Attribute-Value Normalization: Before the value of an attribute is passed to the application or checked for validity, the XML processor must normalize it as follows: - a character reference is processed by appending the referenced character to the attribute value - an entity reference is processed by recursively processing the replacement text of the entity - a whitespace character (#x20, #xD, #xA, #x9) is processed by appending #x20 to the normalized value, except that only a single #x20 is appended for a "#xD#xA" sequence that is part of an external parsed entity or the literal entity value of an internal parsed entity - other characters are processed by appending them to the normalized value If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by a single space (#x20) character. All attributes for which no declaration has been read should be treated by a non-validating parser as if declared CDATA. parse an attribute [41] Attribute ::= Name Eq AttValue [ WFC: No External Entity References ] Attribute values cannot contain direct or indirect entity references to external entities. [ WFC: No < in Attribute Values ] The replacement text of any entity referred to directly or indirectly in an attribute value (other than "<") must not contain a <. [ VC: Attribute Value Type ] The attribute must have been declared; the value must be of the type declared for it. [25] Eq ::= S? '=' S? With namespace: [NS 11] Attribute ::= QName Eq AttValue Also the case QName == xmlns:??? is handled independently as a namespace definition. : parse the Attribute list def for an element [52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>' [53] AttDef ::= S Name S AttType S DefaultDecl parse the Attribute list def for an element [54] AttType ::= StringType | TokenizedType | EnumeratedType [55] StringType ::= 'CDATA' [56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' | 'NMTOKEN' | 'NMTOKENS' Validity constraints for attribute values syntax are checked in xmlValidateAttributeValue() [ VC: ID ] Values of type ID must match the Name production. A name must not appear more than once in an XML document as a value of this type; i.e., ID values must uniquely identify the elements which bear them. [ VC: One ID per Element Type ] No element type may have more than one ID attribute specified. [ VC: ID Attribute Default ] An ID attribute must have a declared default of #IMPLIED or #REQUIRED. [ VC: IDREF ] Values of type IDREF must match the Name production, and values of type IDREFS must match Names; each IDREF Name must match the value of an ID attribute on some element in the XML document; i.e. IDREF values must match the value of some ID attribute. [ VC: Entity Name ] Values of type ENTITY must match the Name production, values of type ENTITIES must match Names; each Entity Name must match the name of an unparsed entity declared in the DTD. [ VC: Name Token ] Values of type NMTOKEN must match the Nmtoken production; values of type NMTOKENS must match Nmtokens. Parse escaped pure raw content. [18] CDSect ::= CDStart CData CDEnd [19] CDStart ::= '<![CDATA[' [20] Data ::= (Char* - (Char* ']]>' Char*)) [21] CDEnd ::= ']]>' parse a CharData section. if we are within a CDATA section ']]>' marks an end of section. The right angle bracket (>) may be represented using the string ">", and must, for compatibility, be escaped using ">" or a character reference when it appears in the string "]]>" in content, when that string is not marking the end of a CDATA section. [14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*) parse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' [ WFC: Legal Character ] Characters referred to using character references must match the production for Char. Skip an XML (SGML) comment <!-- .... --> The spec says that "For compatibility, the string "--" (double-hyphen) must not occur within comments. " [15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->' Parse a content: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)* Parse an attribute default declaration [60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | (('#FIXED' S)? AttValue) [ VC: Required Attribute ] if the default declaration is the keyword #REQUIRED, then the attribute must be specified for all elements of the type in the attribute-list declaration. [ VC: Attribute Default Legal ] The declared default value must meet the lexical constraints of the declared attribute type c.f. xmlValidateAttributeDecl() [ VC: Fixed Attribute Default ] if an attribute has a default value declared with the #FIXED keyword, instances of that attribute must match the default value. [ WFC: No < in Attribute Values ] handled in xmlParseAttValue() parse a DOCTYPE declaration [28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' (markupdecl | PEReference | S)* ']' S?)? '>' [ VC: Root Element Type ] The Name in the document type declaration must match the element type of the root element. parse an XML element, this is highly recursive [39] element ::= EmptyElemTag | STag content ETag [ WFC: Element Type Match ] The Name in an element's end-tag must match the element type in the start-tag. parse the declaration for a Mixed Element content The leading '(' and spaces have been skipped in xmlParseElementContentDecl [47] children ::= (choice | seq) ('?' | '*' | '+')? [48] cp ::= (Name | choice | seq) ('?' | '*' | '+')? [49] choice ::= '(' S? cp ( S? '|' S? cp )* S? ')' [50] seq ::= '(' S? cp ( S? ',' S? cp )* S? ')' [ VC: Proper Group/PE Nesting ] applies to [49] and [50] TODO Parameter-entity replacement text must be properly nested with parenthesized groups. That is to say, if either of the opening or closing parentheses in a choice, seq, or Mixed construct is contained in the replacement text for a parameter entity, both must be contained in the same replacement text. For interoperability, if a parameter-entity reference appears in a choice, seq, or Mixed construct, its replacement text should not be empty, and neither the first nor last non-blank character of the replacement text should be a connector (| or ,). 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 parse an Element declaration. [45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>' [ VC: Unique Element Type Declaration ] No element type may be declared more than once parse the declaration for a Mixed Element content The leading '(' and spaces have been skipped in xmlParseElementContentDecl [51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*' | '(' S? '#PCDATA' S? ')' [ VC: Proper Group/PE Nesting ] applies to [51] too (see [49]) [ VC: No Duplicate Types ] The same name must not appear more than once in a single mixed-content declaration. parse the XML encoding name [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')* parse the XML encoding declaration [80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'") this setups the conversion filters. parse an end of tag [42] ETag ::= '</' Name S? '>' With namespace [NS 9] ETag ::= '</' QName S? '>' parse <!ENTITY declarations [70] EntityDecl ::= GEDecl | PEDecl [71] GEDecl ::= '<!ENTITY' S Name S EntityDef S? '>' [72] PEDecl ::= '<!ENTITY' S '%' S Name S PEDef S? '>' [73] EntityDef ::= EntityValue | (ExternalID NDataDecl?) [74] PEDef ::= EntityValue | ExternalID [76] NDataDecl ::= S 'NDATA' S Name [ VC: Notation Declared ] The Name must match the declared name of a notation. parse ENTITY references declarations [68] EntityRef ::= '&' Name ';' [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", the Name given in the entity reference must match that in an entity declaration, except that well-formed documents need not declare any of the following entities: amp, lt, gt, apos, quot. The declaration of a parameter entity must precede any reference to it. Similarly, the declaration of a general entity must precede any reference to it which appears in a default value in an attribute-list declaration. Note that if entities are declared in the external subset or in external parameter entities, a non-validating processor is not obligated to read and process their declarations; for such documents, the rule that an entity must be declared is a well-formedness constraint only if standalone='yes'. [ WFC: Parsed Entity ] An entity reference must not contain the name of an unparsed entity parse a value for ENTITY declarations [9] EntityValue ::= '"' ([^%&"] | PEReference | Reference)* '"' | "'" ([^%&'] | PEReference | Reference)* "'" parse an Enumerated attribute type. [57] EnumeratedType ::= NotationType | Enumeration [58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')' parse an Enumeration attribute type. [59] Enumeration ::= '(' S? Nmtoken (S? '|' S? Nmtoken)* S? ')' [ VC: Enumeration ] Values of this type must match one of the Nmtoken tokens in the declaration Parse an External ID or a Public ID NOTE: Productions [75] and [83] interact badly since [75] can generate 'PUBLIC' S PubidLiteral S SystemLiteral [75] ExternalID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S SystemLiteral [83] PublicID ::= 'PUBLIC' S PubidLiteral parse Markup declarations from an external subset [30] extSubset ::= textDecl? extSubsetDecl [31] extSubsetDecl ::= (markupdecl | conditionalSect | PEReference | S) * parse Markup declarations [29] markupdecl ::= elementdecl | AttlistDecl | EntityDecl | NotationDecl | PI | Comment [ VC: Proper Declaration/PE Nesting ] Parameter-entity replacement text must be properly nested with markup declarations. That is to say, if either the first character or the last character of a markup declaration (markupdecl above) is contained in the replacement text for a parameter-entity reference, both must be contained in the same replacement text. [ WFC: PEs in Internal Subset ] In the internal DTD subset, parameter-entity references can occur only where markup declarations can occur, not within markup declarations. (This does not apply to references that occur in external parameter entities or to the external subset.) parse an XML Misc* optional field. [27] Misc ::= Comment | PI | S parse an XML name. [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (#x20 Name)* xmlParseNamespace: parse specific PI '<?namespace ...' constructs. This is what the older xml-name Working Draft specified, a bunch of other stuff may still rely on it, so support is still here as if it was declared on the root of the Tree:-( TODO: remove from library To be removed at next drop of binary compatibility parse an XML Nmtoken. [7] Nmtoken ::= (NameChar)+ [8] Nmtokens ::= Nmtoken (#x20 Nmtoken)* parse a notation declaration [82] NotationDecl ::= '<!NOTATION' S Name S (ExternalID | PublicID) S? '>' Hence there is actually 3 choices: 'PUBLIC' S PubidLiteral 'PUBLIC' S PubidLiteral S SystemLiteral and 'SYSTEM' S SystemLiteral See the NOTE on xmlParseExternalID(). parse an Notation attribute type. Note: the leading 'NOTATION' S part has already being parsed... [58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')' [ VC: Notation Attributes ] Values of this type must match one of the notation names included in the declaration; all notation names in the declaration must be declared. parse PEReference declarations The entity content is handled directly by pushing it's content as a new input stream. [69] PEReference ::= '%' Name ';' [ WFC: No Recursion ] A parsed entity must not contain a recursive reference to itself, either directly or indirectly. [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", ... ... The declaration of a parameter entity must precede any reference to it... [ VC: Entity Declared ] In a document with an external subset or external parameter entities with "standalone='no'", ... ... The declaration of a parameter entity must precede any reference to it... [ WFC: In DTD ] Parameter-entity references may only appear in the DTD. NOTE: misleading but this is handled. parse an XML Processing Instruction. [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' The processing is transfered to SAX once parsed. parse the name of a PI [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) parse an XML public literal [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'" Parse and return a string between quotes or doublequotes TODO: Deprecated, to be removed at next drop of binary compatibility parse and handle entity references in content, depending on the SAX interface, this may end-up in a call to character() if this is a CharRef, a predefined entity, if there is no reference() callback. or if the parser was asked to switch to that mode. [67] Reference ::= EntityRef | CharRef parse the XML standalone declaration [32] SDDecl ::= S 'standalone' Eq (("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no')'"')) [ VC: Standalone Document Declaration ] TODO The standalone document declaration must have the value "no" if any external markup declarations contain declarations of: - attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or - entities (other than amp, lt, gt, apos, quot), if references to those entities appear in the document, or - attributes with values subject to normalization, where the attribute appears in the document with a value which will change as a result of normalization, or - element types with element content, if white space occurs directly within any instance of those types. parse a start of tag either for rule element or EmptyElement. In both case we don't parse the tag closing chars. [40] STag ::= '<' Name (S Attribute)* S? '>' [ WFC: Unique Att Spec ] No attribute name may appear more than once in the same start-tag or empty-element tag. [44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>' [ WFC: Unique Att Spec ] No attribute name may appear more than once in the same start-tag or empty-element tag. With namespace: [NS 8] STag ::= '<' QName (S Attribute)* S? '>' [NS 10] EmptyElement ::= '<' QName (S Attribute)* S? '/>' parse an XML Literal [11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'") parse an XML declaration header for external entities [77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>' Question: Seems that EncodingDecl is mandatory ? Is that a typo ? parse the XML version. [24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ") [25] Eq ::= S? '=' S? parse the XML version value. [26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+ parse an XML declaration header [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>' [69] PEReference ::= '%' Name ';' [ WFC: No Recursion ] A parsed entity must not contain a recursive reference to itself, either directly or indirectly. [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", ... ... The declaration of a parameter entity must precede any reference to it... [ VC: Entity Declared ] In a document with an external subset or external parameter entities with "standalone='no'", ... ... The declaration of a parameter entity must precede any reference to it... [ WFC: In DTD ] Parameter-entity references may only appear in the DTD. NOTE: misleading but this is handled. A PEReference may have been detected in the current input stream the handling is done accordingly to http://www.w3.org/TR/REC-xml#entproc i.e. - Included in literal in entity values - Included as Parameter Entity reference within DTDs TODO: Remove, now deprecated ... the test is done directly in the content parsing routines. [67] Reference ::= EntityRef | CharRef [68] EntityRef ::= '&' Name ';' [ WFC: Entity Declared ] the Name given in the entity reference must match that in an entity declaration, except that well-formed documents need not declare any of the following entities: amp, lt, gt, apos, quot. [ WFC: Parsed Entity ] An entity reference must not contain the name of an unparsed entity [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' A PEReference may have been detected in the current input stream the handling is done accordingly to http://www.w3.org/TR/REC-xml#entproc This function removes used input for the parser. xmlPopInput: the current input pointed by ctxt->input came to an end pop it and return the next char. xmlPushInput: switch to a new input stream which is stacked on top of the previous one(s). Trickery: parse an XML name but without consuming the input flow Needed for rollback cases. Used only when parsing entities references. TODO: seems deprecated now, only used in the default part of xmlParserHandleReference [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (S Name)* Set the function to call call back when a xml reference has been made skip all blanks character found at that point in the input streams. It pops up finished entities in the process if allowable at that point. parse an UTF8 encoded XML qualified name string [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName The current char value, if using UTF-8 this may actually span multiple bytes in the input buffer. Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';' Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';' change the input functions when discovering the character encoding of a given entity. change the input functions when discovering the character encoding of a given entity. change the input functions when discovering the character encoding of a given entity.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
libxml2 Reference Manual
+
+ parserInternals
+
+ Synopsis
+ #define XML_SUBSTITUTE_REF;
+#define IS_BLANK(c);
+#define IS_BYTE_CHAR(c);
+#define IS_PUBIDCHAR(c);
+#define IS_DIGIT_CH(c);
+#define IS_EXTENDER(c);
+#define IS_ASCII_DIGIT(c);
+#define IS_COMBINING_CH(c);
+#define IS_CHAR(c);
+#define IS_LETTER(c);
+#define IS_IDEOGRAPHIC(c);
+#define MOVETO_STARTTAG(p);
+#define IS_ASCII_LETTER(c);
+#define IS_DIGIT(c);
+#define XML_SUBSTITUTE_PEREF;
+#define MOVETO_ENDTAG(p);
+#define SKIP_EOL(p);
+#define IS_EXTENDER_CH(c);
+#define IS_BLANK_CH(c);
+#define IS_LETTER_CH(c);
+#define XML_SUBSTITUTE_NONE;
+#define IS_COMBINING(c);
+#define XML_MAX_NAMELEN;
+#define IS_BASECHAR(c);
+#define INPUT_CHUNK;
+#define IS_PUBIDCHAR_CH(c);
+#define IS_CHAR_CH(c);
+#define XML_SUBSTITUTE_BOTH;
+xmlNodePtr nodePop (xmlParserCtxtPtr ctxt);
+void xmlParseNotationDecl (xmlParserCtxtPtr ctxt);
+void xmlParseExternalSubset (xmlParserCtxtPtr ctxt,
+
const xmlChar * ExternalID,
const xmlChar * SystemID);
+void xmlParseMisc (xmlParserCtxtPtr ctxt);
+int xmlSwitchInputEncoding (xmlParserCtxtPtr ctxt,
xmlParserInputPtr input,
xmlCharEncodingHandlerPtr handler);
+xmlParserInputPtr xmlNewStringInputStream (xmlParserCtxtPtr ctxt,
const xmlChar * buffer);
+xmlChar * xmlParseExternalID (xmlParserCtxtPtr ctxt,
xmlChar ** publicID,
int strict);
+xmlChar * xmlScanName (xmlParserCtxtPtr ctxt);
+int xmlParseElementDecl (xmlParserCtxtPtr ctxt);
+void xmlParseMarkupDecl (xmlParserCtxtPtr ctxt);
+htmlParserCtxtPtr htmlCreateFileParserCtxt (const char * filename,
const char * encoding);
+int inputPush (xmlParserCtxtPtr ctxt,
xmlParserInputPtr value);
+xmlChar * xmlStringLenDecodeEntities (xmlParserCtxtPtr ctxt,
const xmlChar * str,
int len,
int what,
xmlChar end,
xmlChar end2,
xmlChar end3);
+const xmlChar * namePop (xmlParserCtxtPtr ctxt);
+void xmlParseContent (xmlParserCtxtPtr ctxt);
+xmlParserInputPtr xmlNewInputStream (xmlParserCtxtPtr ctxt);
+xmlChar * xmlNamespaceParseQName (xmlParserCtxtPtr ctxt,
xmlChar ** prefix);
+xmlParserInputPtr xmlNewInputFromFile (xmlParserCtxtPtr ctxt,
const char * filename);
+void xmlParserHandlePEReference (xmlParserCtxtPtr ctxt);
+xmlChar * xmlStringDecodeEntities (xmlParserCtxtPtr ctxt,
const xmlChar * str,
int what,
xmlChar end,
xmlChar end2,
xmlChar end3);
+xmlParserCtxtPtr xmlCreateFileParserCtxt (const char * filename);
+int xmlParseCharRef (xmlParserCtxtPtr ctxt);
+void xmlParseElement (xmlParserCtxtPtr ctxt);
+void xmlParseTextDecl (xmlParserCtxtPtr ctxt);
+xmlParserInputPtr xmlNewEntityInputStream (xmlParserCtxtPtr ctxt,
xmlEntityPtr entity);
+int xmlCopyCharMultiByte (xmlChar * out,
int val);
+xmlElementContentPtr xmlParseElementChildrenContentDecl (xmlParserCtxtPtr ctxt,
int inputchk);
+void xmlParseCharData (xmlParserCtxtPtr ctxt,
int cdata);
+xmlChar * xmlParseVersionInfo (xmlParserCtxtPtr ctxt);
+int xmlParseSDDecl (xmlParserCtxtPtr ctxt);
+int xmlParseEnumeratedType (xmlParserCtxtPtr ctxt,
xmlEnumerationPtr * tree);
+void xmlHandleEntity (xmlParserCtxtPtr ctxt,
xmlEntityPtr entity);
+int xmlCurrentChar (xmlParserCtxtPtr ctxt,
int * len);
+int xmlSkipBlankChars (xmlParserCtxtPtr ctxt);
+xmlEnumerationPtr xmlParseNotationType (xmlParserCtxtPtr ctxt);
+void xmlParserInputShrink (xmlParserInputPtr in);
+void xmlSetEntityReferenceFunc (xmlEntityReferenceFunc func);
+void xmlFreeInputStream (xmlParserInputPtr input);
+void xmlParsePEReference (xmlParserCtxtPtr ctxt);
+xmlParserCtxtPtr xmlCreateURLParserCtxt (const char * filename,
int options);
+int xmlIsLetter (int c);
+int xmlCheckLanguageID (const xmlChar * lang);
+void xmlNextChar (xmlParserCtxtPtr ctxt);
+xmlEnumerationPtr xmlParseEnumerationType (xmlParserCtxtPtr ctxt);
+int xmlParseAttributeType (xmlParserCtxtPtr ctxt,
xmlEnumerationPtr * tree);
+int xmlParseDefaultDecl (xmlParserCtxtPtr ctxt,
xmlChar ** value);
+xmlChar * xmlParseSystemLiteral (xmlParserCtxtPtr ctxt);
+xmlChar * xmlParseAttValue (xmlParserCtxtPtr ctxt);
+xmlParserCtxtPtr xmlCreateMemoryParserCtxt (const char * buffer,
int size);
+void xmlParseAttributeListDecl (xmlParserCtxtPtr ctxt);
+const xmlChar * xmlParseName (xmlParserCtxtPtr ctxt);
+xmlChar * xmlParseEncName (xmlParserCtxtPtr ctxt);
+int nodePush (xmlParserCtxtPtr ctxt,
xmlNodePtr value);
+int xmlSwitchEncoding (xmlParserCtxtPtr ctxt,
xmlCharEncoding enc);
+int xmlSwitchToEncoding (xmlParserCtxtPtr ctxt,
xmlCharEncodingHandlerPtr handler);
+xmlEntityPtr xmlParseEntityRef (xmlParserCtxtPtr ctxt);
+const xmlChar * xmlParseAttribute (xmlParserCtxtPtr ctxt,
xmlChar ** value);
+void xmlParseEndTag (xmlParserCtxtPtr ctxt);
+const xmlChar * xmlParseEncodingDecl (xmlParserCtxtPtr ctxt);
+void htmlInitAutoClose (void);
+xmlParserCtxtPtr xmlCreateEntityParserCtxt (const xmlChar * URL,
const xmlChar * ID,
const xmlChar * base);
+xmlChar * xmlSplitQName (xmlParserCtxtPtr ctxt,
const xmlChar * name,
xmlChar ** prefix);
+void xmlParserHandleReference (xmlParserCtxtPtr ctxt);
+const xmlChar * xmlParsePITarget (xmlParserCtxtPtr ctxt);
+int xmlParseElementContentDecl (xmlParserCtxtPtr ctxt,
const xmlChar * name,
xmlElementContentPtr * result);
+xmlParserInputPtr inputPop (xmlParserCtxtPtr ctxt);
+xmlChar xmlPopInput (xmlParserCtxtPtr ctxt);
+xmlChar * xmlParsePubidLiteral (xmlParserCtxtPtr ctxt);
+void xmlPushInput (xmlParserCtxtPtr ctxt,
xmlParserInputPtr input);
+xmlChar * xmlParseEntityValue (xmlParserCtxtPtr ctxt,
xmlChar ** orig);
+xmlChar * xmlDecodeEntities (xmlParserCtxtPtr ctxt,
int len,
int what,
xmlChar end,
xmlChar end2,
xmlChar end3);
+xmlChar * xmlParseVersionNum (xmlParserCtxtPtr ctxt);
+void xmlParseXMLDecl (xmlParserCtxtPtr ctxt);
+typedef void xmlEntityReferenceFunc (xmlEntityPtr ent,
xmlNodePtr firstNode,
xmlNodePtr lastNode);
+xmlElementContentPtr xmlParseElementMixedContentDecl (xmlParserCtxtPtr ctxt,
int inputchk);
+xmlChar * xmlParseQuotedString (xmlParserCtxtPtr ctxt);
+xmlChar * xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt);
+void xmlParseCDSect (xmlParserCtxtPtr ctxt);
+int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
const xmlChar * cur,
int * len);
+void xmlParseComment (xmlParserCtxtPtr ctxt);
+void xmlErrMemory (xmlParserCtxtPtr ctxt,
const char * extra);
+xmlChar * xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt);
+xmlChar * xmlParseNmtoken (xmlParserCtxtPtr ctxt);
+void xmlParseReference (xmlParserCtxtPtr ctxt);
+int namePush (xmlParserCtxtPtr ctxt,
const xmlChar * value);
+void xmlParseNamespace (xmlParserCtxtPtr ctxt);
+int xmlCopyChar (int len,
xmlChar * out,
int val);
+void xmlParsePI (xmlParserCtxtPtr ctxt);
+void xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt);
+const xmlChar * xmlParseStartTag (xmlParserCtxtPtr ctxt);
+void xmlParseEntityDecl (xmlParserCtxtPtr ctxt);
+Description
+ Details
+ Macro INPUT_CHUNK
#define INPUT_CHUNK;
+
+
+
+
+
+ Macro IS_BASECHAR
#define IS_BASECHAR(c);
+
c: an UNICODE value (int)
+ Macro IS_BLANK
#define IS_BLANK(c);
+
c: an UNICODE value (int)
+ Macro IS_BLANK_CH
#define IS_BLANK_CH(c);
+
c: an xmlChar value (normally unsigned char)
+ Macro IS_BYTE_CHAR
#define IS_BYTE_CHAR(c);
+
c: an byte value (int)
+ Macro IS_CHAR
#define IS_CHAR(c);
+
c: an UNICODE value (int)
+ Macro IS_CHAR_CH
#define IS_CHAR_CH(c);
+
c: an xmlChar (usually an unsigned char)
+ Macro IS_COMBINING
#define IS_COMBINING(c);
+
c: an UNICODE value (int)
+ Macro IS_COMBINING_CH
#define IS_COMBINING_CH(c);
+
c: an xmlChar (usually an unsigned char)
+ Macro IS_DIGIT
#define IS_DIGIT(c);
+
c: an UNICODE value (int)
+ Macro IS_DIGIT_CH
#define IS_DIGIT_CH(c);
+
c: an xmlChar value (usually an unsigned char)
+ Macro IS_EXTENDER
#define IS_EXTENDER(c);
+
c: an UNICODE value (int)
+ Macro IS_EXTENDER_CH
#define IS_EXTENDER_CH(c);
+
c: an xmlChar value (usually an unsigned char)
+ Macro IS_IDEOGRAPHIC
#define IS_IDEOGRAPHIC(c);
+
c: an UNICODE value (int)
+ Macro IS_LETTER
#define IS_LETTER(c);
+
c: an UNICODE value (int)
+ Macro IS_LETTER_CH
#define IS_LETTER_CH(c);
+
c: an xmlChar value (normally unsigned char)
+ Macro IS_PUBIDCHAR
#define IS_PUBIDCHAR(c);
+
c: an UNICODE value (int)
+ Macro IS_PUBIDCHAR_CH
#define IS_PUBIDCHAR_CH(c);
+
c: an xmlChar value (normally unsigned char)
+ Macro MOVETO_ENDTAG
#define MOVETO_ENDTAG(p);
+
p: and UTF8 string pointer
+ Macro MOVETO_STARTTAG
#define MOVETO_STARTTAG(p);
+
p: and UTF8 string pointer
+
+
+ Macro XML_MAX_NAMELEN
#define XML_MAX_NAMELEN;
+
+ Macro XML_SUBSTITUTE_BOTH
#define XML_SUBSTITUTE_BOTH;
+
+
+
+ Macro XML_SUBSTITUTE_PEREF
#define XML_SUBSTITUTE_PEREF;
+
+ Macro XML_SUBSTITUTE_REF
#define XML_SUBSTITUTE_REF;
+
+ Function type xmlEntityReferenceFunc
void xmlEntityReferenceFunc (xmlEntityPtr ent,
xmlNodePtr firstNode,
xmlNodePtr lastNode)
+ent: the entity firstNode: the fist node in the chunk lastNode: the last nod in the chunk
+ Variable xmlParserMaxDepth
unsigned int xmlParserMaxDepth;
+
+
+ Variable xmlStringComment
const xmlCharxmlStringComment[] xmlStringComment;
+
+
+ Variable xmlStringText
const xmlCharxmlStringText[] xmlStringText;
+
+
+ Variable xmlStringTextNoenc
const xmlCharxmlStringTextNoenc[] xmlStringTextNoenc;
+
+
+ htmlCreateFileParserCtxt ()
htmlParserCtxtPtr htmlCreateFileParserCtxt (const char * filename,
const char * encoding)
+filename: the filename encoding: a free form C string describing the HTML document encoding, or NULL Returns: the new parser context or NULL
+ htmlInitAutoClose ()
void htmlInitAutoClose (void)
+
+ inputPop ()
xmlParserInputPtr inputPop (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the input just removed
+ inputPush ()
int inputPush (xmlParserCtxtPtr ctxt,
xmlParserInputPtr value)
+ctxt: an XML parser context value: the parser input Returns: 0 in case of error, the index in the stack otherwise
+ namePop ()
const xmlChar * namePop (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the name just removed
+ namePush ()
int namePush (xmlParserCtxtPtr ctxt,
const xmlChar * value)
+ctxt: an XML parser context value: the element name Returns: -1 in case of error, the index in the stack otherwise
+ nodePop ()
xmlNodePtr nodePop (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the node just removed
+ nodePush ()
int nodePush (xmlParserCtxtPtr ctxt,
xmlNodePtr value)
+ctxt: an XML parser context value: the element node Returns: 0 in case of error, the index in the stack otherwise
+ xmlCheckLanguageID ()
int xmlCheckLanguageID (const xmlChar * lang)
+lang: pointer to the string value Returns: 1 if correct 0 otherwise
+ xmlCopyChar ()
int xmlCopyChar (int len,
xmlChar * out,
int val)
+
+ xmlCopyCharMultiByte ()
int xmlCopyCharMultiByte (xmlChar * out,
int val)
+
+ xmlCreateEntityParserCtxt ()
xmlParserCtxtPtr xmlCreateEntityParserCtxt (const xmlChar * URL,
const xmlChar * ID,
const xmlChar * base)
+URL: the entity URL ID: the entity PUBLIC ID base: a possible base for the target URI Returns: the new parser context or NULL
+ xmlCreateFileParserCtxt ()
xmlParserCtxtPtr xmlCreateFileParserCtxt (const char * filename)
+filename: the filename Returns: the new parser context or NULL
+ xmlCreateMemoryParserCtxt ()
xmlParserCtxtPtr xmlCreateMemoryParserCtxt (const char * buffer,
int size)
+buffer: a pointer to a char array size: the size of the array Returns: the new parser context or NULL
+ xmlCreateURLParserCtxt ()
xmlParserCtxtPtr xmlCreateURLParserCtxt (const char * filename,
int options)
+filename: the filename or URL options: a combination of xmlParserOption Returns: the new parser context or NULL
+ xmlCurrentChar ()
int xmlCurrentChar (xmlParserCtxtPtr ctxt,
int * len)
+ctxt: the XML parser context len: pointer to the length of the char read Returns: the current char value and its length
+ xmlDecodeEntities ()
xmlChar * xmlDecodeEntities (xmlParserCtxtPtr ctxt,
int len,
int what,
xmlChar end,
xmlChar end2,
xmlChar end3)
+ctxt: the parser context len: the len to decode (in bytes !), -1 for no size limit what: combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF end: an end marker xmlChar, 0 if none end2: an end marker xmlChar, 0 if none end3: an end marker xmlChar, 0 if none Returns: A newly allocated string with the substitution done. The caller must deallocate it !
+ xmlErrMemory ()
void xmlErrMemory (xmlParserCtxtPtr ctxt,
const char * extra)
+ctxt: an XML parser context extra: extra informations
+ xmlFreeInputStream ()
void xmlFreeInputStream (xmlParserInputPtr input)
+input: an xmlParserInputPtr
+ xmlHandleEntity ()
void xmlHandleEntity (xmlParserCtxtPtr ctxt,
xmlEntityPtr entity)
+ctxt: an XML parser context entity: an XML entity pointer.
+ xmlIsLetter ()
int xmlIsLetter (int c)
+c: an unicode character (int) Returns: 0 if not, non-zero otherwise
+ xmlNamespaceParseNCName ()
xmlChar * xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the namespace name or NULL
+ xmlNamespaceParseNSDef ()
xmlChar * xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the namespace name
+ xmlNamespaceParseQName ()
xmlChar * xmlNamespaceParseQName (xmlParserCtxtPtr ctxt,
xmlChar ** prefix)
+ctxt: an XML parser context prefix: a xmlChar ** Returns: the local part, and prefix is updated to get the Prefix if any.
+ xmlNewEntityInputStream ()
xmlParserInputPtr xmlNewEntityInputStream (xmlParserCtxtPtr ctxt,
xmlEntityPtr entity)
+ctxt: an XML parser context entity: an Entity pointer Returns: the new input stream or NULL
+ xmlNewInputFromFile ()
xmlParserInputPtr xmlNewInputFromFile (xmlParserCtxtPtr ctxt,
const char * filename)
+ctxt: an XML parser context filename: the filename to use as entity Returns: the new input stream or NULL in case of error
+ xmlNewInputStream ()
xmlParserInputPtr xmlNewInputStream (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the new input stream or NULL
+ xmlNewStringInputStream ()
xmlParserInputPtr xmlNewStringInputStream (xmlParserCtxtPtr ctxt,
const xmlChar * buffer)
+ctxt: an XML parser context buffer: an memory buffer Returns: the new input stream
+ xmlNextChar ()
void xmlNextChar (xmlParserCtxtPtr ctxt)
+ctxt: the XML parser context
+ xmlParseAttValue ()
xmlChar * xmlParseAttValue (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the AttValue parsed or NULL. The value has to be freed by the caller.
+ xmlParseAttribute ()
const xmlChar * xmlParseAttribute (xmlParserCtxtPtr ctxt,
xmlChar ** value)
+
+ xmlParseAttributeListDecl ()
void xmlParseAttributeListDecl (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseAttributeType ()
int xmlParseAttributeType (xmlParserCtxtPtr ctxt,
xmlEnumerationPtr * tree)
+ctxt: an XML parser context tree: the enumeration tree built while parsing Returns: the attribute type
+ xmlParseCDSect ()
void xmlParseCDSect (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseCharData ()
void xmlParseCharData (xmlParserCtxtPtr ctxt,
int cdata)
+ctxt: an XML parser context cdata: int indicating whether we are within a CDATA section
+ xmlParseCharRef ()
int xmlParseCharRef (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the value parsed (as an int), 0 in case of error
+ xmlParseComment ()
void xmlParseComment (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseContent ()
void xmlParseContent (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseDefaultDecl ()
int xmlParseDefaultDecl (xmlParserCtxtPtr ctxt,
xmlChar ** value)
+ctxt: an XML parser context value: Receive a possible fixed default value for the attribute Returns: XML_ATTRIBUTE_NONE, XML_ATTRIBUTE_REQUIRED, XML_ATTRIBUTE_IMPLIED or XML_ATTRIBUTE_FIXED.
+ xmlParseDocTypeDecl ()
void xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseElement ()
void xmlParseElement (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseElementChildrenContentDecl ()
xmlElementContentPtr xmlParseElementChildrenContentDecl (xmlParserCtxtPtr ctxt,
int inputchk)
+ctxt: an XML parser context inputchk: the input used for the current entity, needed for boundary checks Returns: the tree of xmlElementContentPtr describing the element hierarchy.
+ xmlParseElementContentDecl ()
int xmlParseElementContentDecl (xmlParserCtxtPtr ctxt,
const xmlChar * name,
xmlElementContentPtr * result)
+ctxt: an XML parser context name: the name of the element being defined. result: the Element Content pointer will be stored here if any Returns: the type of element content XML_ELEMENT_TYPE_xxx
+ xmlParseElementDecl ()
int xmlParseElementDecl (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the type of the element, or -1 in case of error
+ xmlParseElementMixedContentDecl ()
xmlElementContentPtr xmlParseElementMixedContentDecl (xmlParserCtxtPtr ctxt,
int inputchk)
+ctxt: an XML parser context inputchk: the input used for the current entity, needed for boundary checks Returns: the list of the xmlElementContentPtr describing the element choices
+ xmlParseEncName ()
xmlChar * xmlParseEncName (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the encoding name value or NULL
+ xmlParseEncodingDecl ()
const xmlChar * xmlParseEncodingDecl (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the encoding value or NULL
+ xmlParseEndTag ()
void xmlParseEndTag (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseEntityDecl ()
void xmlParseEntityDecl (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseEntityRef ()
xmlEntityPtr xmlParseEntityRef (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the xmlEntityPtr if found, or NULL otherwise.
+ xmlParseEntityValue ()
xmlChar * xmlParseEntityValue (xmlParserCtxtPtr ctxt,
xmlChar ** orig)
+ctxt: an XML parser context orig: if non-NULL store a copy of the original entity value Returns: the EntityValue parsed with reference substituted or NULL
+ xmlParseEnumeratedType ()
int xmlParseEnumeratedType (xmlParserCtxtPtr ctxt,
xmlEnumerationPtr * tree)
+ctxt: an XML parser context tree: the enumeration tree built while parsing Returns: XML_ATTRIBUTE_ENUMERATION or XML_ATTRIBUTE_NOTATION
+ xmlParseEnumerationType ()
xmlEnumerationPtr xmlParseEnumerationType (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the enumeration attribute tree built while parsing
+ xmlParseExternalID ()
xmlChar * xmlParseExternalID (xmlParserCtxtPtr ctxt,
xmlChar ** publicID,
int strict)
+ctxt: an XML parser context publicID: a xmlChar** receiving PubidLiteral strict: indicate whether we should restrict parsing to only production [75], see NOTE below Returns: the function returns SystemLiteral and in the second case publicID receives PubidLiteral, is strict is off it is possible to return NULL and have publicID set.
+ xmlParseExternalSubset ()
void xmlParseExternalSubset (xmlParserCtxtPtr ctxt,
const xmlChar * ExternalID,
const xmlChar * SystemID)
+ctxt: an XML parser context ExternalID: the external identifier SystemID: the system identifier (or URL)
+ xmlParseMarkupDecl ()
void xmlParseMarkupDecl (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseMisc ()
void xmlParseMisc (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseName ()
const xmlChar * xmlParseName (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the Name parsed or NULL
+ xmlParseNamespace ()
void xmlParseNamespace (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseNmtoken ()
xmlChar * xmlParseNmtoken (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the Nmtoken parsed or NULL
+ xmlParseNotationDecl ()
void xmlParseNotationDecl (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseNotationType ()
xmlEnumerationPtr xmlParseNotationType (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the notation attribute tree built while parsing
+ xmlParsePEReference ()
void xmlParsePEReference (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParsePI ()
void xmlParsePI (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParsePITarget ()
const xmlChar * xmlParsePITarget (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the PITarget name or NULL
+ xmlParsePubidLiteral ()
xmlChar * xmlParsePubidLiteral (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the PubidLiteral parsed or NULL.
+ xmlParseQuotedString ()
xmlChar * xmlParseQuotedString (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the string parser or NULL.
+ xmlParseReference ()
void xmlParseReference (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseSDDecl ()
int xmlParseSDDecl (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: 1 if standalone, 0 otherwise
+ xmlParseStartTag ()
const xmlChar * xmlParseStartTag (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the element name parsed
+ xmlParseSystemLiteral ()
xmlChar * xmlParseSystemLiteral (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the SystemLiteral parsed or NULL
+ xmlParseTextDecl ()
void xmlParseTextDecl (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParseVersionInfo ()
xmlChar * xmlParseVersionInfo (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the version string, e.g. "1.0"
+ xmlParseVersionNum ()
xmlChar * xmlParseVersionNum (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the string giving the XML version number, or NULL
+ xmlParseXMLDecl ()
void xmlParseXMLDecl (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context
+ xmlParserHandlePEReference ()
void xmlParserHandlePEReference (xmlParserCtxtPtr ctxt)
+ctxt: the parser context
+ xmlParserHandleReference ()
void xmlParserHandleReference (xmlParserCtxtPtr ctxt)
+ctxt: the parser context
+ xmlParserInputShrink ()
void xmlParserInputShrink (xmlParserInputPtr in)
+in: an XML parser input
+ xmlPopInput ()
xmlChar xmlPopInput (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the current xmlChar in the parser context
+ xmlPushInput ()
void xmlPushInput (xmlParserCtxtPtr ctxt,
xmlParserInputPtr input)
+ctxt: an XML parser context input: an XML parser input fragment (entity, XML fragment ...).
+ xmlScanName ()
xmlChar * xmlScanName (xmlParserCtxtPtr ctxt)
+ctxt: an XML parser context Returns: the Name parsed or NULL
+ xmlSetEntityReferenceFunc ()
void xmlSetEntityReferenceFunc (xmlEntityReferenceFunc func)
+func: A valid function
+ xmlSkipBlankChars ()
int xmlSkipBlankChars (xmlParserCtxtPtr ctxt)
+ctxt: the XML parser context Returns: the number of space chars skipped
+ xmlSplitQName ()
xmlChar * xmlSplitQName (xmlParserCtxtPtr ctxt,
const xmlChar * name,
xmlChar ** prefix)
+ctxt: an XML parser context name: an XML parser context prefix: a xmlChar ** Returns: the local part, and prefix is updated to get the Prefix if any.
+ xmlStringCurrentChar ()
int xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
const xmlChar * cur,
int * len)
+ctxt: the XML parser context cur: pointer to the beginning of the char len: pointer to the length of the char read Returns: the current char value and its length
+ xmlStringDecodeEntities ()
xmlChar * xmlStringDecodeEntities (xmlParserCtxtPtr ctxt,
const xmlChar * str,
int what,
xmlChar end,
xmlChar end2,
xmlChar end3)
+ctxt: the parser context str: the input string what: combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF end: an end marker xmlChar, 0 if none end2: an end marker xmlChar, 0 if none end3: an end marker xmlChar, 0 if none Returns: A newly allocated string with the substitution done. The caller must deallocate it !
+ xmlStringLenDecodeEntities ()
xmlChar * xmlStringLenDecodeEntities (xmlParserCtxtPtr ctxt,
const xmlChar * str,
int len,
int what,
xmlChar end,
xmlChar end2,
xmlChar end3)
+ctxt: the parser context str: the input string len: the string length what: combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF end: an end marker xmlChar, 0 if none end2: an end marker xmlChar, 0 if none end3: an end marker xmlChar, 0 if none Returns: A newly allocated string with the substitution done. The caller must deallocate it !
+ xmlSwitchEncoding ()
int xmlSwitchEncoding (xmlParserCtxtPtr ctxt,
xmlCharEncoding enc)
+ctxt: the parser context enc: the encoding value (number) Returns: 0 in case of success, -1 otherwise
+ xmlSwitchInputEncoding ()
int xmlSwitchInputEncoding (xmlParserCtxtPtr ctxt,
xmlParserInputPtr input,
xmlCharEncodingHandlerPtr handler)
+ctxt: the parser context input: the input stream handler: the encoding handler Returns: 0 in case of success, -1 otherwise
+ xmlSwitchToEncoding ()
int xmlSwitchToEncoding (xmlParserCtxtPtr ctxt,
xmlCharEncodingHandlerPtr handler)
+ctxt: the parser context handler: the encoding handler Returns: 0 in case of success, -1 otherwise
+
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNodeSetContent
+xmlNodeSetContentLen
xmlParseAttValue
xmlParseAttributeType
xmlParseCDSect
diff --git a/doc/APIchunk10.html b/doc/APIchunk10.html
index 432eb31..c55e04a 100644
--- a/doc/APIchunk10.html
+++ b/doc/APIchunk10.html
@@ -331,6 +331,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlAutomataNewAllTrans
xmlAutomataNewCounterTrans
xmlIsLetter
+xmlNodeAddContent
+xmlNodeAddContentLen
xmlNodeDump
xmlNodeDumpOutput
xmlParseBalancedChunkMemory
@@ -345,6 +347,8 @@ A:link, A:visited, A:active { text-decoration: underline }
htmlIsAutoClosed
xmlCatalogAdd
xmlNewChild
+xmlNodeSetContent
+xmlNodeSetContentLen
xmlParseURIRaw
xmlTextReaderConstString
diff --git a/doc/APIchunk12.html b/doc/APIchunk12.html
index b036fc8..fb3ad79 100644
--- a/doc/APIchunk12.html
+++ b/doc/APIchunk12.html
@@ -679,6 +679,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlTextWriterWriteDTDExternalEntityContents
xmlParseElementDecl
+
xmlRelaxNGSetParserErrors
@@ -689,6 +690,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlXPathFreeNodeSetList
+
+xmlNodeAddContentLen
resolveEntity
resolveEntitySAXFunc
diff --git a/doc/APIchunk13.html b/doc/APIchunk13.html
index 1c9e865..834cde1 100644
--- a/doc/APIchunk13.html
+++ b/doc/APIchunk13.html
@@ -44,6 +44,7 @@ A:link, A:visited, A:active { text-decoration: underline }
+xmlTextReaderRelaxNGValidate
xmlTextReaderSchemaValidate
xmlTextReaderSchemaValidateCtxt
xmlTextReaderSetSchema
@@ -251,10 +252,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlExpExpDerive
xmlExpStringDerive
-xmlTextReaderRelaxNGValidate
xmlTextReaderSetSchema
-xmlTextReaderRelaxNGValidate
xmlTextReaderSetSchema
@@ -323,6 +322,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlAddNextSibling
xmlAddPrevSibling
xmlTextReaderCurrentNode
+xmlTextReaderSetup
xmlC14NDocSave
@@ -374,6 +374,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlRegexpIsDeterminist
+_xmlXPathContext
xmlDictCleanup
xmlDictCreate
xmlDictCreateSub
@@ -384,7 +385,6 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlStreamPushAttr
xmlStreamPushNode
-_xmlXPathContext
xmlDictCreate
xmlDictCreateSub
xmlDictExists
diff --git a/doc/APIchunk14.html b/doc/APIchunk14.html
index dfe748d..77106c1 100644
--- a/doc/APIchunk14.html
+++ b/doc/APIchunk14.html
@@ -273,6 +273,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNewDocNode
xmlNewDocNodeEatName
xmlNewTextChild
+xmlNodeSetContent
+xmlNodeSetContentLen
xmlParseCDSect
xmlParseCharData
xmlSaveUri
diff --git a/doc/APIchunk15.html b/doc/APIchunk15.html
index 5bd7b26..802fb82 100644
--- a/doc/APIchunk15.html
+++ b/doc/APIchunk15.html
@@ -122,6 +122,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNewTextReaderFilename
xmlStreamPushNode
xmlStreamWantsAnyNode
+
xmlNanoFTPOpen
xmlNanoHTTPFetch
diff --git a/doc/APIchunk17.html b/doc/APIchunk17.html
index 9842c3a..c92691a 100644
--- a/doc/APIchunk17.html
+++ b/doc/APIchunk17.html
@@ -482,6 +482,7 @@ A:link, A:visited, A:active { text-decoration: underline }
+xmlParseSDDecl
xmlReconciliateNs
xmlValidateDtdFinal
diff --git a/doc/APIchunk19.html b/doc/APIchunk19.html
index 5bb6121..98688f2 100644
--- a/doc/APIchunk19.html
+++ b/doc/APIchunk19.html
@@ -153,6 +153,7 @@ A:link, A:visited, A:active { text-decoration: underline }
+xmlParseSDDecl
xmlSetGenericErrorFunc
xmlSetStructuredErrorFunc
xmlStreamPush
@@ -243,6 +244,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlParserHandlePEReference
+
xmlKeepBlanksDefault
diff --git a/doc/APIchunk20.html b/doc/APIchunk20.html
index 2a9174d..97a8fc6 100644
--- a/doc/APIchunk20.html
+++ b/doc/APIchunk20.html
@@ -100,6 +100,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNewDocNode
xmlNewDocNodeEatName
xmlNewTextChild
+xmlNodeSetContent
+xmlNodeSetContentLen
xmlParseEntityRef
xmlParserHandleReference
xmlRegExecErrInfo
diff --git a/doc/APIchunk21.html b/doc/APIchunk21.html
index f7cf410..a49e002 100644
--- a/doc/APIchunk21.html
+++ b/doc/APIchunk21.html
@@ -240,6 +240,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlSaveToFilename
xmlSaveToIO
xmlTextReaderSchemaValidateCtxt
+xmlTextReaderSetup
xmlXPathContextSetCache
xmlListInsert
diff --git a/doc/APIchunk22.html b/doc/APIchunk22.html
index bd256cb..f823421 100644
--- a/doc/APIchunk22.html
+++ b/doc/APIchunk22.html
@@ -162,6 +162,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNodeSetContent
+xmlNodeSetContentLen
xmlCopyError
diff --git a/doc/APIchunk23.html b/doc/APIchunk23.html
index effe8f5..91b1835 100644
--- a/doc/APIchunk23.html
+++ b/doc/APIchunk23.html
@@ -101,6 +101,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNamespaceParseNCName
xmlNamespaceParseNSDef
xmlNamespaceParseQName
+xmlNodeAddContent
+xmlNodeAddContentLen
xmlParseCDSect
xmlParserInputBufferGrow
xmlTextWriterWriteFormatRaw
@@ -246,8 +248,12 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNewChild
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNodeAddContent
+xmlNodeAddContentLen
xmlNodeBufGetContent
xmlNodeGetContent
+xmlNodeSetContent
+xmlNodeSetContentLen
xmlParseAttribute
xmlParseCharRef
xmlParseEntityRef
@@ -512,6 +518,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlSchematronFreeValidCtxt
xmlTextReaderClose
xmlXIncludeSetFlags
+
+xmlNodeSetContentLen
diff --git a/doc/APIchunk24.html b/doc/APIchunk24.html
index b737b67..a965455 100644
--- a/doc/APIchunk24.html
+++ b/doc/APIchunk24.html
@@ -493,6 +493,10 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNewChild
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNodeAddContent
+xmlNodeAddContentLen
+xmlNodeSetContent
+xmlNodeSetContentLen
xmlTextWriterWriteRawLen
xmlGcMemGet
@@ -529,8 +533,10 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlParseSDDecl
xmlSAX2IsStandalone
xmlTextReaderStandalone
-
+
+xmlParseEntityRef
xmlParsePEReference
+xmlParseSDDecl
xmlParserHandlePEReference
@@ -859,6 +865,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlDOMWrapRemoveNode
xmlInitCharEncodingHandlers
xmlNanoFTPGetConnection
+xmlNodeAddContent
+xmlNodeAddContentLen
xmlSchemaGetCanonValue
xmlSchemaGetCanonValueWhtsp
xmlTextReaderNormalization
@@ -866,6 +874,10 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNewChild
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNodeAddContent
+xmlNodeAddContentLen
+xmlNodeSetContent
+xmlNodeSetContentLen
xmlStrcat
xmlStrdup
diff --git a/doc/APIchunk26.html b/doc/APIchunk26.html
index 828659a..5606555 100644
--- a/doc/APIchunk26.html
+++ b/doc/APIchunk26.html
@@ -58,6 +58,8 @@ A:link, A:visited, A:active { text-decoration: underline }
+xmlNodeAddContent
+xmlNodeAddContentLen
xmlURIUnescapeString
diff --git a/doc/APIchunk28.html b/doc/APIchunk28.html
index 05bde7b..97bb1b7 100644
--- a/doc/APIchunk28.html
+++ b/doc/APIchunk28.html
@@ -163,6 +163,10 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNewChild
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNodeSetContent
+xmlNodeSetContentLen
+
+xmlNodeSetContentLen
xmlCreateEntitiesTable
@@ -290,6 +294,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlXPathNodeSetDel
xmlXPathNodeSetItem
xmlXPtrBuildNodeList
+
+
xmlXPathNodeSetCreate
@@ -330,6 +336,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlTextReaderGetRemainder
+xmlTextReaderSetup
resolveEntitySAXFunc
xmlFreeInputStream
diff --git a/doc/APIchunk29.html b/doc/APIchunk29.html
index 92c88b4..2e413da 100644
--- a/doc/APIchunk29.html
+++ b/doc/APIchunk29.html
@@ -38,7 +38,8 @@ A:link, A:visited, A:active { text-decoration: underline }
x-x
y-z
Letter y:
-
+
+xmlInputMatchCallback
xmlIsBlankNode
xmlIsMixedElement
xmlNodeIsText
diff --git a/doc/APIchunk4.html b/doc/APIchunk4.html
index b3c8364..4b74048 100644
--- a/doc/APIchunk4.html
+++ b/doc/APIchunk4.html
@@ -211,6 +211,10 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNewTextChild
xmlNewTextWriter
xmlNewTextWriterPushParser
+xmlNodeAddContent
+xmlNodeAddContentLen
+xmlNodeSetContent
+xmlNodeSetContentLen
xmlParseExternalID
xmlParsePEReference
xmlParserHandlePEReference
diff --git a/doc/APIchunk7.html b/doc/APIchunk7.html
index ed7c4a2..c8cde3b 100644
--- a/doc/APIchunk7.html
+++ b/doc/APIchunk7.html
@@ -188,6 +188,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlReaderNewMemory
xmlReaderNewWalker
xmlSetupParserForBuffer
+xmlTextReaderSetup
diff --git a/doc/APIfiles.html b/doc/APIfiles.html
index e10fe00..8a3f6d7 100644
--- a/doc/APIfiles.html
+++ b/doc/APIfiles.html
@@ -2719,6 +2719,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlTextReaderSetParserProp
xmlTextReaderSetSchema
xmlTextReaderSetStructuredErrorHandler
+xmlTextReaderSetup
xmlTextReaderStandalone
xmlTextReaderValue
xmlTextReaderXmlLang
diff --git a/doc/APIfunctions.html b/doc/APIfunctions.html
index fea4fd3..bbfd181 100644
--- a/doc/APIfunctions.html
+++ b/doc/APIfunctions.html
@@ -1768,6 +1768,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlParserInputBufferPush
xmlParserInputBufferRead
xmlSchemaValidateStream
+xmlTextReaderSetup
inputPush
xmlCheckHTTPInput
xmlFreeInputStream
@@ -2059,6 +2060,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlTextReaderSetParserProp
xmlTextReaderSetSchema
xmlTextReaderSetStructuredErrorHandler
+xmlTextReaderSetup
xmlTextReaderStandalone
xmlTextReaderValue
xmlTextReaderXmlLang
diff --git a/doc/APIsymbols.html b/doc/APIsymbols.html
index c6c5265..4cfeef8 100644
--- a/doc/APIsymbols.html
+++ b/doc/APIsymbols.html
@@ -2939,6 +2939,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlTextReaderSetParserProp
xmlTextReaderSetSchema
xmlTextReaderSetStructuredErrorHandler
+xmlTextReaderSetup
xmlTextReaderStandalone
xmlTextReaderValue
xmlTextReaderXmlLang
diff --git a/doc/DOM.html b/doc/DOM.html
index 52f1139..90b988b 100644
--- a/doc/DOM.html
+++ b/doc/DOM.html
@@ -12,6 +12,6 @@ Object Model; this is an API for accessing XML or HTML structured
documents. Native support for DOM in Gnome is on the way (module gnome-dom),
and will be based on gnome-xml. This will be a far cleaner interface to
manipulate XML files within Gnome since it won't expose the internal
-structure.
The current DOM implementation on top of libxml2 is the gdome2 Gnome module, this -is a full DOM interface, thanks to Paolo Casarini, check the Gdome2 homepage for more -informations.