Gnome XML Library Reference Manual |
---|
parserInternals —
extern unsigned int xmlParserMaxDepth; #define XML_MAX_NAMELEN #define INPUT_CHUNK #define IS_BYTE_CHAR (c) #define IS_CHAR (c) #define IS_CHAR_CH (c) #define IS_BLANK (c) #define IS_BLANK_CH (c) #define IS_BASECHAR (c) #define IS_DIGIT (c) #define IS_DIGIT_CH (c) #define IS_COMBINING (c) #define IS_COMBINING_CH (c) #define IS_EXTENDER (c) #define IS_EXTENDER_CH (c) #define IS_IDEOGRAPHIC (c) #define IS_LETTER (c) #define IS_LETTER_CH (c) #define IS_PUBIDCHAR (c) #define IS_PUBIDCHAR_CH (c) #define SKIP_EOL (p) #define MOVETO_ENDTAG (p) #define MOVETO_STARTTAG (p) #define XML_SUBSTITUTE_NONE #define XML_SUBSTITUTE_REF #define XML_SUBSTITUTE_PEREF #define XML_SUBSTITUTE_BOTH void (*xmlEntityReferenceFunc) (xmlEntityPtr ent, xmlNodePtr firstNode, xmlNodePtr lastNode);
extern unsigned int xmlParserMaxDepth;
arbitrary depth limit for the XML documents that we allow to process. This is not a limitation of the parser but a safety boundary feature.
#define XML_MAX_NAMELEN 100
Identifiers can be longer, but this will be more costly at runtime.
#define INPUT_CHUNK 250
The parser tries to always have that amount of input ready. One of the point is providing context when reporting errors.
#define IS_BYTE_CHAR(c) xmlIsChar_ch(c)
Macro to check the following production in the XML spec:
[2] Char ::=
c: | an byte value (int) |
#define IS_CHAR(c) xmlIsCharQ(c)
Macro to check the following production in the XML spec:
[2] Char ::=
c: | an UNICODE value (int) |
#define IS_CHAR_CH(c) xmlIsChar_ch(c)
Behaves like IS_CHAR on single-byte value
c: | an xmlChar (usually an unsigned char) |
#define IS_BLANK(c) xmlIsBlankQ(c)
Macro to check the following production in the XML spec:
[3] S ::= (
c: | an UNICODE value (int) |
#define IS_BLANK_CH(c) xmlIsBlank_ch(c)
Behaviour same as IS_BLANK
c: | an xmlChar value (normally unsigned char) |
#define IS_BASECHAR(c) xmlIsBaseCharQ(c)
Macro to check the following production in the XML spec:
[85] BaseChar ::= ... long list see REC ...
c: | an UNICODE value (int) |
#define IS_DIGIT(c) xmlIsDigitQ(c)
Macro to check the following production in the XML spec:
[88] Digit ::= ... long list see REC ...
c: | an UNICODE value (int) |
#define IS_DIGIT_CH(c) xmlIsDigit_ch(c)
Behaves like IS_DIGIT but with a single byte argument
c: | an xmlChar value (usually an unsigned char) |
#define IS_COMBINING(c) xmlIsCombiningQ(c)
Macro to check the following production in the XML spec:
[87] CombiningChar ::= ... long list see REC ...
c: | an UNICODE value (int) |
#define IS_COMBINING_CH(c) 0
Always false (all combining chars > 0xff)
c: | an xmlChar (usually an unsigned char) |
#define IS_EXTENDER(c) xmlIsExtenderQ(c)
Macro to check the following production in the XML spec:
[89] Extender ::=
c: | an UNICODE value (int) |
#define IS_EXTENDER_CH(c) xmlIsExtender_ch(c)
Behaves like IS_EXTENDER but with a single-byte argument
c: | an xmlChar value (usually an unsigned char) |
#define IS_IDEOGRAPHIC(c) xmlIsIdeographicQ(c)
Macro to check the following production in the XML spec:
[86] Ideographic ::= [
c: | an UNICODE value (int) |
#define IS_LETTER(c) (IS_BASECHAR(c) || IS_IDEOGRAPHIC(c))
Macro to check the following production in the XML spec:
[84] Letter ::= BaseChar | Ideographic
c: | an UNICODE value (int) |
#define IS_LETTER_CH(c) xmlIsBaseChar_ch(c)
Macro behaves like IS_LETTER, but only check base chars
c: | an xmlChar value (normally unsigned char) |
#define IS_PUBIDCHAR(c) xmlIsPubidCharQ(c)
Macro to check the following production in the XML spec:
[13] PubidChar ::=
c: | an UNICODE value (int) |
#define IS_PUBIDCHAR_CH(c) xmlIsPubidChar_ch(c)
Same as IS_PUBIDCHAR but for single-byte value
c: | an xmlChar value (normally unsigned char) |
#define XML_SUBSTITUTE_PEREF 2
Whether parameter entities need to be substituted.
#define XML_SUBSTITUTE_BOTH 3
Both general and parameter entities need to be substituted.
void (*xmlEntityReferenceFunc) (xmlEntityPtr ent, xmlNodePtr firstNode, xmlNodePtr lastNode);
Callback function used when one needs to be able to track back the provenance of a chunk of nodes inherited from an entity replacement.
ent: | the entity |
firstNode: | the fist node in the chunk |
lastNode: | the last nod in the chunk |
<< HTMLtree | entities >> |