old DocBook SGML parser interface for a DocBook SGML non-verifying parser This code is DEPRECATED, and should not be used anymore. Daniel Veillard interface for an HTML 4.0 non-verifying parser this module implements an HTML 4.0 non-verifying parser with API compatible with the XML parser ones. It should be able to parse "real world" HTML, even if severely broken from a specification point of view. Daniel Veillard specific APIs to process HTML tree, especially serialization this module implements a few function needed to process tree in an HTML specific way. Daniel Veillard Old SAX version 1 handler, deprecated DEPRECATED set of SAX version 1 interfaces used to build the DOM tree. Daniel Veillard SAX2 parser interface used to build the DOM tree those are the default SAX2 interfaces used by the library when building DOM tree. Daniel Veillard Provide Canonical XML and Exclusive XML Canonicalization the c14n modules provides a "Canonical XML" implementation Aleksey Sanin <aleksey@aleksey.com> interfaces to the Catalog handling system the catalog module implements the support for XML Catalogs and SGML catalogs Daniel Veillard Unicode character range checking this module exports interfaces for the character range validation APIs This file is automatically generated from the cvs source definition files using the genChRanges.py Python script William Brack <wbrack@mmm.com.hk> Tree debugging APIs Interfaces to a set of routines used for debugging the tree produced by the XML parser. Daniel Veillard string dictionnary dictionary of reusable strings, just used to avoid allocation and freeing operations. Daniel Veillard interface for the encoding conversion functions interface for the encoding conversion functions needed for XML basic encoding and iconv() support. Related specs are rfc2044 (UTF-8 and UTF-16) F. Yergeau Alis Technologies [ISO-10646] UTF-8 and UTF-16 in Annexes [ISO-8859-1] ISO Latin-1 characters codes. [UNICODE] The Unicode Consortium, "The Unicode Standard -- Worldwide Character Encoding -- Version 1.0", Addison- Wesley, Volume 1, 1991, Volume 2, 1992. UTF-8 is described in Unicode Technical Report #4. [US-ASCII] Coded Character Set--7-bit American Standard Code for Information Interchange, ANSI X3.4-1986. Daniel Veillard interface for the XML entities handling this module provides some of the entity API needed for the parser and applications. Daniel Veillard interface for all global variables of the library all the global variables and thread handling for those variables is handled by this module. The bottom of this file is automatically generated by build_glob.py based on the description file global.data Gary Pennington <Gary.Pennington@uk.sun.com>, Daniel Veillard chained hash tables Bjorn Reese <bjorn.reese@systematic.dk> lists interfaces this module implement the list support used in various place in the library. Gary Pennington <Gary.Pennington@uk.sun.com> minimal FTP implementation minimal FTP implementation allowing to fetch resources like external subset. Daniel Veillard minimal HTTP implementation minimal HTTP implementation allowing to fetch resources like external subset. Daniel Veillard the core parser module Interfaces, constants and types related to the XML parser Daniel Veillard 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. Daniel Veillard pattern expression handling allows to compile and test pattern expressions for nodes either in a tree or based on a parser state. Daniel Veillard implementation of the Relax-NG validation implementation of the Relax-NG validation Daniel Veillard internal interfaces for XML Schemas internal interfaces for the XML Schemas handling and schema validity checking Daniel Veillard interfaces for thread handling set of generic threading related routines should work with pthreads, Windows native or TLS threads Daniel Veillard interfaces for tree manipulation this module describes the structures found in an tree resulting from an XML or HTML parsing, as well as the API provided for various processing on that tree Daniel Veillard library of generic URI related routines library of generic URI related routines Implements RFC 2396 Daniel Veillard The DTD validation API for the DTD handling and the validity checking Daniel Veillard implementation of XInclude API to handle XInclude processing, implements the World Wide Web Consortium Last Call Working Draft 10 November 2003 Daniel Veillard unfinished XLink detection module unfinished XLink detection module Daniel Veillard interface for the I/O interfaces used by the parser interface for the I/O interfaces used by the parser Daniel Veillard API to build regexp automata the API to build regexp automata Daniel Veillard error handling the API used to report errors Daniel Veillard macros for marking symbols as exportable/importable. macros for marking symbols as exportable/importable. Igor Zlatovic <igor@zlatkovic.com> interface for the memory allocator provides interfaces for the memory allocator, including debugging capabilities. Daniel Veillard the XMLReader implementation API of the XML streaming API based on C# interfaces. Daniel Veillard regular expressions handling basic API for libxml regular expressions handling used for XML Schemas and validation. Daniel Veillard the XML document serializer API to save document or subtree of document Daniel Veillard incomplete XML Schemas structure implementation interface to the XML Schemas handling and schema validity checking, it is incomplete right now. Daniel Veillard implementation of XML Schema Datatypes module providing the XML Schema Datatypes implementation both definition and validity checking Daniel Veillard set of routines to process strings type and interfaces needed for the internal string handling of the library, especially UTF8 processing. Daniel Veillard Unicode character APIs API for the Unicode character APIs This file is automatically generated from the UCS description files of the Unicode Character Database Daniel Veillard compile-time version informations compile-time version informations for the XML library Daniel Veillard text writing API for XML text writing API for XML Alfred Mickautsch <alfred@mickautsch.de> XML Path Language implementation API for the XML Path Language implementation XML Path Language implementation XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer Daniel Veillard internal interfaces for XML Path Language implementation internal interfaces for XML Path Language implementation used to build new modules on top of XPath like XPointer and XSLT Daniel Veillard API to handle XML Pointers API to handle XML Pointers Base implementation was made accordingly to W3C Candidate Recommendation 7 June 2000 Daniel Veillard Macro used to signal to GCC unused function parameters Macro to cast a string to an xmlChar * when one know its safe. default buffer size 4000. Macro to try to cast the value on the top of the XPath stack to a boolean. Macro to try to cast the value on the top of the XPath stack to a number. Macro to try to cast the value on the top of the XPath stack to a string. Macro to check that the number of args passed to an XPath function matches. Macro to return from the function if an XPath error was detected. Macro to return 0 from the function if an XPath error was detected. Macro to check that the value on top of the XPath stack is of a given type. Macro to check that the value on top of the XPath stack is of a given type. Return(0) in case of failure DEBUG_MEMORY replaces the allocator with a collect and debug shell to the libc allocator. DEBUG_MEMORY should only be activated when debugging libxml i.e. if libxml has been configured with --with-debug-mem too. #define DEBUG_MEMORY_FREED #define DEBUG_MEMORY_LOCATION Whether the memory debugging is configured in Macro. A comment in a HTML document is really implemented the same way as a comment in an XML document. Macro. An entity reference in a HTML document is really implemented the same way as an entity reference in an XML document. Macro. A processing instruction in a HTML document is really implemented the same way as a processing instruction in an XML document. Macro. A preserved node in a HTML document is really implemented the same way as a CDATA section in an XML document. Macro. A text node in a HTML document is really implemented the same way as a text node in an XML document. 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 Whether the automata interfaces are compiled in Whether the Canonicalization support is configured in Whether the Catalog support is configured in Whether Debugging module is configured in Whether the SGML Docbook support is configured in the version string like "1.2.3" Whether the FTP support is configured in Whether the HTML support is configured in Whether the HTTP support is configured in Whether iconv support is available Whether ISO-8859-* support is made available in case iconv is not Whether the deprecated APIs are compiled in for compatibility Whether the serialization/saving support is configured in Whether the xmlPattern node selection interface is configured in Whether the push parsing interfaces are configured in Whether the xmlReader parsing interface is configured in Whether the regular expressions interfaces are compiled in Whether the older SAX1 interface is configured in Whether the Schemas validation interfaces are compiled in Macro to check that the libxml version in use is compatible with the version the software has been compiled against Whether the thread support is configured in Whether the DOM like tree manipulation API support is configured in Whether the Unicode related interfaces are compiled in Whether the DTD validation support is configured in the version number: 1.2.3 value is 1002003 extra version information, used to show a CVS compilation the version number string, 1.2.3 value is "1002003" Whether the xmlWriter saving interface is configured in Whether XInclude is configured in Whether XPath is configured in Whether XPointer is configured in Skips to the next '>' char. Skips to the next '<' char. Skips the end of line chars. defined if the trio support should not be configured in defined if the trio support need to be configured in Macro defining "fallback" Macro defining "href" Macro defining "include" Macro defining the Xinclude namespace: http://www.w3.org/2003/XInclude Macro defining the draft Xinclude namespace: http://www.w3.org/2001/XInclude Macro defining "parse" Macro defining "encoding" Macro defining "text" Macro defining "xml" Macro defining "xpointer" The namespace for the XML Catalogs elements. The specific XML Catalog Processing Instuction name. Bit in the loadsubset context field to tell to do complete the elements attributes lists with the ones defaulted from the DTDs. Use it to initialize xmlLoadExtDtdDefaultValue. The default version of XML used: 1.0 Bit in the loadsubset context field to tell to do ID/REFs lookups. Use it to initialize xmlLoadExtDtdDefaultValue. Macro to extract the content pointer of a node. Macro to extract the line number of an element node. A namespace declaration node. Identifiers can be longer, but this will be more costly at runtime. Special constant found in SAX2 blocks initialized fields Ignore validation non definition on attributes Obsolete, not used anymore. Skip unknown attribute from validation Obsolete, not used anymore. Apply strict validation rules on attributes Obsolete, not used anymore. Used by wildcards. Validate if type found, don't worry if not found Skip unknown attribute from validation Used by wildcards. Apply strict validation rules The attribute wildcard has been already builded. The attribute wildcard has been already builded. the attribute has a fixed value allow elements in no namespace The attribute is optional. Used by wildcards. The attribute is prohibited. The attribute is required. the schema has "extension" in the set of blockDefault. the schema has "restriction" in the set of blockDefault. the schema has "substitution" in the set of blockDefault. the element is abstract the "block" attribute is absent disallowed substitutions are absent disallowed substitutions: "restriction" disallowed substitutions: "substituion" the element has a default value substitution group exclusions are absent the element has a fixed value the element is global the element is nillable allow elements in no namespace Obsolete, not used anymore. the element is a reference to a type the element is top level obsolete: use XML_SCHEMAS_ELEM_GLOBAL instead collapse the types of the facet preserve the type of the facet replace the type of the facet unknown facet handling the schema has "extension" in the set of finalDefault. the cshema has "list" in the set of finalDefault. the schema has "restriction" in the set of finalDefault. the schema has "union" in the set of finalDefault. the schema is currently including an other schema with no target namespace. the schema requires qualified attributes the schema requires qualified elements the simple or complex type has a derivation method of "extension". the simple or complex type has a derivation method of "restriction". the complexType has a final of "extension". the simpleType has a final of "list". the simpleType/complexType has a final of "restriction". the simpleType has a final of "union". the type is global the element content type is mixed the complexType owns an attribute wildcard, i.e. it can be freed by the complexType the simpleType has a variety of "absent". the simpleType has a variety of "union". the simpleType has a variety of "list". the simpleType has a variety of "union". If the wildcard is complete. Bit in the loadsubset context field to tell to not do ID/REFs registration. Used to initialize xmlLoadExtDtdDefaultValue in some special cases. Both general and parameter entities need to be substituted. If no entities need to be substituted. Whether parameter entities need to be substituted. Whether general entities need to be substituted. This is the name for the special xml:id attribute This is the namespace for the special xml: prefix predefined in the XML Namespace specification. Macro to raise an XPath error and return. Macro to raise an XPath error and return 0. Returns the default subelement for this element Checks whether an HTML element description may be a direct child of the specified element. Returns 1 if allowed; 0 otherwise. Returns the attributes required for the specified element. Macro for compatibility naming layer with libxml1. Maps to "children." Automatically generated by genChRanges.py Automatically generated by genChRanges.py Automatically generated by genChRanges.py Automatically generated by genChRanges.py Automatically generated by genChRanges.py Automatically generated by genChRanges.py Automatically generated by genChRanges.py Automatically generated by genChRanges.py Automatically generated by genChRanges.py Automatically generated by genChRanges.py Automatically generated by genChRanges.py Automatically generated by genChRanges.py Automatically generated by genChRanges.py Automatically generated by genChRanges.py Macro for compatibility naming layer with libxml1. Maps to "children". this macro maps to xmlTextWriterWriteDTD This macro maps to xmlTextWriterWritePI Check if an XPath error was raised. Returns true if an error has been raised, false otherwise. Empties a node-set. Get the context node of an XPath context. Returns the context node. Get the document of an XPath context. Returns the context document. Get the error code of an XPath context. Returns the context error. Implement a functionality similar to the DOM NodeList.length. Returns the number of nodes in the node-set. Checks whether @ns is empty or not. Returns %TRUE if @ns is an empty node-set. Implements a functionality similar to the DOM NodeList.item(). Returns the xmlNodePtr at the given @index in @ns or NULL if @index is out of range (0 to length-1) Pushes the boolean @val on the context stack. Pushes an empty node-set on the context stack. Pushes an empty string on the stack. Pushes user data on the context stack. Pushes false on the context stack. Pushes the node-set @ns on the context stack. Pushes the double @val on the context stack. Pushes the string @str on the context stack. Pushes true on the context stack. Raises an XPATH_INVALID_ARITY error. Raises an error. Raises an XPATH_INVALID_TYPE error. Checks if the current value on the XPath stack is an external object. Returns true if the current object on the stack is an external object. Check if the current value on the XPath stack is a node set or an XSLT value tree. Returns true if the current object on the stack is a node-set. LIBXML_HTML_ENABLED Take a block of UTF-8 chars in and try to convert it to an ASCII plus HTML entities block of chars out. Take a block of UTF-8 chars in and try to convert it to an ISO Latin 1 block of chars out. LIBXML_SAX1_ENABLED Handle an attribute that has been read by the parser. The default handling is to convert the attribute into an DOM subtree and past it in a new xmlAttr element added to the element. DEPRECATED: use xmlSAX2Attribute() LIBXML_SAX1_ENABLED An attribute definition has been parsed DEPRECATED: use xmlSAX2AttributeDecl() An attribute definition has been parsed. Handle an attribute that has been read by the parser. The default handling is to convert the attribute into an DOM subtree and past it in a new xmlAttr element added to the element. LIBXML_SAX1_ENABLED called when a pcdata block has been parsed DEPRECATED: use xmlSAX2CDataBlock() Called when a pcdata block has been parsed. LIBXML_SAX1_ENABLED receiving some chars from the parser. DEPRECATED: use xmlSAX2Characters() Receiving some chars from the parser. LIBXML_SAX1_ENABLED Check that the current element namespace is the same as the one read upon parsing. DEPRECATED LIBXML_SAX1_ENABLED A comment has been parsed. DEPRECATED: use xmlSAX2Comment() A comment has been parsed. LIBXML_DOCB_ENABLED Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. LIBXML_DOCB_ENABLED Create a parser context for using the DocBook SGML parser in push mode To allow content encoding detection, @size should be >= 4 The value of @filename is used for fetching external entities and error/warning reports. Initialize the default SAX handler LIBXML_DOCB_ENABLED Take a block of UTF-8 chars in and try to convert it to an ASCII plus SGML entities block of chars out. LIBXML_DOCB_ENABLED Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed. LIBXML_DOCB_ENABLED Parse a Chunk of memory LIBXML_DOCB_ENABLED parse an SGML in-memory document and build a tree. LIBXML_DOCB_ENABLED parse an SGML document (and build a tree if using the standard SAX interface). LIBXML_DOCB_ENABLED parse a Docbook SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. LIBXML_DOCB_ENABLED parse an SGML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. LIBXML_DOCB_ENABLED parse an SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. LIBXML_SAX1_ENABLED An element definition has been parsed DEPRECATED: use xmlSAX2ElementDecl() An element definition has been parsed. LIBXML_SAX1_ENABLED called when the document end has been detected. DEPRECATED: use xmlSAX2EndDocument() Called when the document end has been detected. LIBXML_SAX1_ENABLED called when the end of an element has been detected. DEPRECATED: use xmlSAX2EndElement() SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element. Called when the end of an element has been detected. LIBXML_SAX1_ENABLED An entity definition has been parsed DEPRECATED: use xmlSAX2EntityDecl() An entity definition has been parsed. Display and format an error messages, callback. LIBXML_SAX1_ENABLED Callback on external subset declaration. DEPRECATED: use xmlSAX2ExternalSubset() Callback on external subset declaration. Display and format fatal error messages, callback. Note: so far fatalError() SAX callbacks are not used, error() get all the callbacks for errors. LIBXML_FTP_ENABLED A callback for the xmlNanoFTPGet command. LIBXML_FTP_ENABLED A callback for the xmlNanoFTPList command. Note that only one of year and day:minute are specified. LIBXML_SAX1_ENABLED Provide the column number of the current parsing point. DEPRECATED: use xmlSAX2GetColumnNumber() LIBXML_SAX1_ENABLED Get an entity by name DEPRECATED: use xmlSAX2GetEntity() Get an entity by name. LIBXML_SAX1_ENABLED Provide the line number of the current parsing point. DEPRECATED: use xmlSAX2GetLineNumber() LIBXML_SAX1_ENABLED Get the current element namespace. DEPRECATED LIBXML_SAX1_ENABLED Get a parameter entity by name DEPRECATED: use xmlSAX2GetParameterEntity() Get a parameter entity by name. LIBXML_SAX1_ENABLED Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN" DEPRECATED: use xmlSAX2GetPublicId() LIBXML_SAX1_ENABLED Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd DEPRECATED: use xmlSAX2GetSystemId() LIBXML_SAX1_ENABLED An old global namespace has been parsed. DEPRECATED LIBXML_SAX1_ENABLED Does this document has an external subset DEPRECATED: use xmlSAX2HasExternalSubset() Does this document has an external subset? LIBXML_SAX1_ENABLED Does this document has an internal subset DEPRECATED: use xmlSAX2HasInternalSubset() Does this document has an internal subset. LIBXML_HTML_ENABLED Checks whether an attribute is valid for an element Has full knowledge of Required and Deprecated attributes LIBXML_HTML_ENABLED The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if the element or one of it's children would autoclose the given tag. LIBXML_HTML_ENABLED Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. LIBXML_HTML_ENABLED Create a parser context for an HTML in-memory document. LIBXML_HTML_ENABLED LIBXML_PUSH_ENABLED Create a parser context for using the HTML parser in push mode The value of @filename is used for fetching external entities and error/warning reports. LIBXML_HTML_ENABLED parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context LIBXML_HTML_ENABLED parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context LIBXML_HTML_ENABLED parse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context LIBXML_HTML_ENABLED parse an HTML document from I/O functions and source and build a tree. This reuses the existing @ctxt parser context LIBXML_HTML_ENABLED parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context LIBXML_HTML_ENABLED Reset a parser context LIBXML_HTML_ENABLED Applies the options to the parser context Initialize the default SAX handler LIBXML_HTML_ENABLED LIBXML_OUTPUT_ENABLED Dump an HTML document. LIBXML_HTML_ENABLED LIBXML_OUTPUT_ENABLED Dump an HTML document. Formating return/spaces are added. LIBXML_HTML_ENABLED LIBXML_OUTPUT_ENABLED Dump an HTML document to an open FILE. LIBXML_HTML_ENABLED LIBXML_OUTPUT_ENABLED Dump an HTML document in memory and return the xmlChar * and it's size. It's up to the caller to free the memory. LIBXML_HTML_ENABLED Checks whether an HTML element may be a direct child of a parent element. Note - doesn't check for deprecated elements LIBXML_HTML_ENABLED Checks whether an HTML element may be a direct child of a parent element. and if so whether it is valid or deprecated. LIBXML_HTML_ENABLED Take a block of UTF-8 chars in and try to convert it to an ASCII plus HTML entities block of chars out. LIBXML_HTML_ENABLED Lookup the given entity in EntitiesTable TODO: the linear scan is really ugly, an hash table is really needed. LIBXML_HTML_ENABLED Lookup the given entity in EntitiesTable TODO: the linear scan is really ugly, an hash table is really needed. LIBXML_HTML_ENABLED Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed. LIBXML_HTML_ENABLED Encoding definition lookup in the Meta tags LIBXML_HTML_ENABLED Set and return the previous value for handling HTML omitted tags. LIBXML_HTML_ENABLED 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. LIBXML_HTML_ENABLED The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if a tag is autoclosed by one of it's child LIBXML_HTML_ENABLED Determine if a given attribute is a boolean attribute. LIBXML_HTML_ENABLED Check if an attribute is of content type Script LIBXML_HTML_ENABLED Creates a new HTML document LIBXML_HTML_ENABLED Creates a new HTML document without a DTD node if @URI and @ExternalID are NULL LIBXML_HTML_ENABLED LIBXML_OUTPUT_ENABLED Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added. LIBXML_HTML_ENABLED LIBXML_OUTPUT_ENABLED Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added. LIBXML_HTML_ENABLED LIBXML_OUTPUT_ENABLED Dump an HTML node, recursive behaviour,children are printed too. TODO: if encoding == NULL try to save in the doc encoding LIBXML_HTML_ENABLED LIBXML_OUTPUT_ENABLED Dump an HTML node, recursive behaviour,children are printed too. LIBXML_HTML_ENABLED LIBXML_OUTPUT_ENABLED Dump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added. LIBXML_HTML_ENABLED Checks whether the tree node is valid. Experimental (the author only uses the HTML enhancements in a SAX parser) LIBXML_HTML_ENABLED parse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' LIBXML_HTML_ENABLED LIBXML_PUSH_ENABLED Parse a Chunk of memory LIBXML_HTML_ENABLED parse an HTML in-memory document and build a tree. LIBXML_HTML_ENABLED parse an HTML document (and build a tree if using the standard SAX interface). LIBXML_HTML_ENABLED parse an HTML element, this is highly recursive [39] element ::= EmptyElemTag | STag content ETag [41] Attribute ::= Name Eq AttValue LIBXML_HTML_ENABLED parse an HTML ENTITY references [68] EntityRef ::= '&' Name ';' LIBXML_HTML_ENABLED parse an HTML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. LIBXML_HTML_ENABLED parse an XML in-memory document and build a tree. LIBXML_HTML_ENABLED parse an XML from a file descriptor and build a tree. LIBXML_HTML_ENABLED parse an XML file from the filesystem or the network. LIBXML_HTML_ENABLED parse an HTML document from I/O functions and source and build a tree. LIBXML_HTML_ENABLED parse an XML in-memory document and build a tree. LIBXML_HTML_ENABLED Parse an HTML in-memory document. If sax is not NULL, use the SAX callbacks to handle parse events. If sax is NULL, fallback to the default DOM behavior and return a tree. LIBXML_HTML_ENABLED parse an HTML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. LIBXML_HTML_ENABLED LIBXML_OUTPUT_ENABLED Dump an HTML document to a file. If @filename is "-" the stdout file is used. LIBXML_HTML_ENABLED LIBXML_OUTPUT_ENABLED Dump an HTML document to a file using a given encoding and formatting returns/spaces are added. LIBXML_HTML_ENABLED LIBXML_OUTPUT_ENABLED Dump an HTML document to a file using a given encoding. LIBXML_HTML_ENABLED Sets the current encoding in the Meta tags NOTE: this will not change the document content encoding, just the META flag associated. LIBXML_HTML_ENABLED Lookup the HTML tag in the ElementTable LIBXML_SAX1_ENABLED receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters DEPRECATED: use xmlSAX2IgnorableWhitespace() Receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters. Set or reset (if NULL) the default handler for generic errors to the builtin error function. LIBXML_SAX1_ENABLED LIBXML_DOCB_ENABLED Initialize the default DocBook SAX version 1 handler DEPRECATED: use xmlSAX2InitDocbDefaultSAXHandler() for the new SAX2 blocks LIBXML_SAX1_ENABLED LIBXML_HTML_ENABLED Initialize the default HTML SAX version 1 handler DEPRECATED: use xmlSAX2InitHtmlDefaultSAXHandler() for the new SAX2 blocks LIBXML_SAX1_ENABLED Initialize the default XML SAX version 1 handler DEPRECATED: use xmlSAX2InitDefaultSAXHandler() for the new SAX2 blocks Pops the top parser input from the input stack Pushes a new parser input on top of the input stack LIBXML_SAX1_ENABLED Callback on internal subset declaration. DEPRECATED: use xmlSAX2InternalSubset() Callback on internal subset declaration. LIBXML_SAX1_ENABLED Is this document tagged standalone ? DEPRECATED: use xmlSAX2IsStandalone() Is this document tagged standalone? Take a block of ISO Latin 1 chars in and try to convert it to an UTF-8 block of chars out. Pops the top element name from the name stack Pushes a new element name on top of the name stack LIBXML_SAX1_ENABLED A namespace has been parsed. DEPRECATED Pops the top element node from the node stack Pushes a new element node on top of the node stack LIBXML_SAX1_ENABLED What to do when a notation declaration has been parsed. DEPRECATED: use xmlSAX2NotationDecl() What to do when a notation declaration has been parsed. LIBXML_SAX1_ENABLED A processing instruction has been parsed. DEPRECATED: use xmlSAX2ProcessingInstruction() A processing instruction has been parsed. LIBXML_SAX1_ENABLED called when an entity reference is detected. DEPRECATED: use xmlSAX2Reference() Called when an entity reference is detected. LIBXML_SAX1_ENABLED The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine DEPRECATED: use xmlSAX2ResolveEntity() Callback: The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine LIBXML_SAX1_ENABLED Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case. DEPRECATED Receive the document locator at startup, actually xmlDefaultSAXLocator. Everything is available on the context, so this is useless in our case. LIBXML_SAX1_ENABLED Set the current element namespace. DEPRECATED LIBXML_SAX1_ENABLED called when the document start being processed. DEPRECATED: use xmlSAX2StartDocument() Called when the document start being processed. LIBXML_SAX1_ENABLED called when an opening tag has been processed. DEPRECATED: use xmlSAX2StartElement() SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element. Called when an opening tag has been processed. LIBXML_SAX1_ENABLED What to do when an unparsed entity declaration is parsed DEPRECATED: use xmlSAX2UnparsedEntityDecl() What to do when an unparsed entity declaration is parsed. LIBXML_XPATH_ENABLED Pops the top XPath object from the value stack LIBXML_XPATH_ENABLED Pushes a new XPath object on top of the value stack Display and format a warning messages, callback. This is the prototype for a extended link detection callback. This is the prototype for a extended link set detection callback. Get the default xlink detection routine Get the default xlink handler. Check whether the given node carries the attributes needed to be a link element (or is one of the linking elements issued from the (X)HTML DtDs). This routine don't try to do full checking of the link validity but tries to detect and return the appropriate link type. This is the prototype for the link detection routine. It calls the default link detection callbacks upon link detection. Set the default xlink detection routine Set the default xlink handlers This is the prototype for a simple link detection callback. LIBXML_CATALOG_ENABLED Add an entry in the catalog, it may overwrite existing but different entries. LIBXML_CATALOG_ENABLED LIBXML_OUTPUT_ENABLED Dump the given catalog to the given file. LIBXML_CATALOG_ENABLED Remove an entry from the catalog LIBXML_CATALOG_ENABLED Do a complete resolution lookup of an External Identifier LIBXML_CATALOG_ENABLED Try to lookup the catalog local reference associated to a public ID in that catalog LIBXML_CATALOG_ENABLED Try to lookup the catalog resource for a system ID LIBXML_CATALOG_ENABLED Do a complete resolution lookup of an URI Register a new attribute declaration Note that @tree becomes the ownership of the DTD Add a new node to @parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case @cur is freed) If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. Add a list of node at the end of the child list of the parent merging adjacent TEXT nodes (@cur may be freed) Register a new entity for this document. Register a new entity for this document DTD external subset. Register a new element declaration Registers an alias @alias for an encoding named @name. Existing alias will be overwritten. Register a new id declaration Add a new node @elem as the next sibling of @cur If the new node was already inserted in a document it is first unlinked from its existing context. As a result of text merging @elem may be freed. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. Register a new notation declaration LIBXML_TREE_ENABLED Add a new node @elem as the previous sibling of @cur merging adjacent TEXT nodes (@elem may be freed) If the new node was already inserted in a document it is first unlinked from its existing context. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. Register a new ref declaration Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context. LIBXML_OUTPUT_ENABLED Create a buffered parser output Create a buffered parser input for progressive parsing Serialize text attribute values to an xml simple buffer LIBXML_AUTOMATA_ENABLED Compile the automata into a Reg Exp ready for being executed. The automata should be free after this point. LIBXML_AUTOMATA_ENABLED Initial state lookup LIBXML_AUTOMATA_ENABLED Checks if an automata is determinist. LIBXML_AUTOMATA_ENABLED If @to is NULL, this creates first a new target state in the automata and then adds a an ALL transition from the @from state to the target state. That transition is an epsilon transition allowed only when all transitions from the @from node have been activated. LIBXML_AUTOMATA_ENABLED If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and whose number is between @min and @max LIBXML_AUTOMATA_ENABLED If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state which will increment the counter provided LIBXML_AUTOMATA_ENABLED Create a new counter LIBXML_AUTOMATA_ENABLED If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state which will be allowed only if the counter is within the right range. LIBXML_AUTOMATA_ENABLED If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state LIBXML_AUTOMATA_ENABLED If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and whose number is between @min and @max, moreover that transition can only be crossed once. LIBXML_AUTOMATA_ENABLED Create a new disconnected state in the automata LIBXML_AUTOMATA_ENABLED If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by the value of @token LIBXML_AUTOMATA_ENABLED If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by the value of @token LIBXML_AUTOMATA_ENABLED Makes that state a final state LIBXML_DEBUG_ENABLED Convenient way to turn bool into text Add a string range to an XML buffer. if len == -1, the length of str is recomputed. Add a string range to the beginning of an XML buffer. if len == -1, the length of @str is recomputed. Append a zero terminated C string to an XML buffer. Append a zero terminated string to an XML buffer. Function to extract the content of a buffer routine to create an XML buffer. routine to create an XML buffer. routine to create an XML buffer from an immutable memory area. The area won't be modified nor copied, and is expected to be present until the end of the buffer lifetime. Dumps an XML buffer to a FILE *. empty a buffer. Frees an XML buffer. It frees both the content and the structure which encapsulate it. Grow the available space of an XML buffer. Function to get the length of a buffer Resize a buffer to accommodate minimum size of @size. Sets the allocation scheme for this buffer Remove the beginning of an XML buffer. routine which manages and grows an output buffer. This one adds xmlChars at the end of the buffer. routine which manage and grows an output buffer. This one add C chars at the end of the array. routine which manage and grows an output buffer. This one writes a quoted or double quoted #xmlChar string, checking first if it holds quote or double-quotes internally Builds the QName @prefix:@ncname in @memory if there is enough space and prefix is not NULL nor empty, otherwise allocate a new string. If prefix is NULL or empty it returns ncname. Expresses the URI of the reference in terms relative to the base. Some examples of this operation include: base = "http://site1.com/docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif pic1.gif http://site2.com/docs/pic1.gif http://site2.com/docs/pic1.gif base = "docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif http://site1.com/docs/pic1.gif Note: if the URI reference is really wierd or complicated, it may be worthwhile to first convert it into a "nice" one by calling xmlBuildURI (using 'base') before calling this routine, since this routine (for reasonable efficiency) assumes URI has already been through some validation. Computes he final URI of the reference done by checking that the given URI is valid, and building the final URI using the base URI. This is processed according to section 5.2 of the RFC 2396 5.2. Resolving Relative References to Absolute Form This function provides the current index of the parser relative to the start of the current entity. This function is computed in bytes from the beginning starting at zero and finishing at the size in byte of the file if parsing a file. The function is of constant cost if the input is UTF-8 but can be costly if run on non-UTF-8 input. LIBXML_C14N_ENABLED LIBXML_OUTPUT_ENABLED Dumps the canonized image of given XML document into memory. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n) LIBXML_C14N_ENABLED LIBXML_OUTPUT_ENABLED Dumps the canonized image of given XML document into the file. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n) LIBXML_C14N_ENABLED LIBXML_OUTPUT_ENABLED Dumps the canonized image of given XML document into the provided buffer. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n) LIBXML_C14N_ENABLED LIBXML_OUTPUT_ENABLED Dumps the canonized image of given XML document into the provided buffer. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n) LIBXML_C14N_ENABLED LIBXML_OUTPUT_ENABLED Constructs a canonic path from the specified path. LIBXML_CATALOG_ENABLED Add an entry in the catalog, it may overwrite existing but different entries. If called before any other catalog routine, allows to override the default shared catalog put in place by xmlInitializeCatalog(); LIBXML_CATALOG_ENABLED Add the new entry to the catalog list LIBXML_CATALOG_ENABLED Free up all the memory associated with catalogs LIBXML_CATALOG_ENABLED Convert all the SGML catalog entries as XML ones LIBXML_CATALOG_ENABLED LIBXML_OUTPUT_ENABLED Dump all the global catalog content to the given file. LIBXML_CATALOG_ENABLED Free up the memory associated to the catalog list LIBXML_CATALOG_ENABLED Used to get the user preference w.r.t. to what catalogs should be accepted LIBXML_CATALOG_ENABLED Try to lookup the catalog reference associated to a public ID DEPRECATED, use xmlCatalogResolvePublic() LIBXML_CATALOG_ENABLED Try to lookup the catalog reference associated to a system ID DEPRECATED, use xmlCatalogResolveSystem() LIBXML_CATALOG_ENABLED Check is a catalog is empty LIBXML_CATALOG_ENABLED Do a complete resolution lookup of an External Identifier using a document's private catalog list LIBXML_CATALOG_ENABLED Do a complete resolution lookup of an URI using a document's private catalog list LIBXML_CATALOG_ENABLED Remove an entry from the catalog LIBXML_CATALOG_ENABLED Do a complete resolution lookup of an External Identifier LIBXML_CATALOG_ENABLED Try to lookup the catalog reference associated to a public ID LIBXML_CATALOG_ENABLED Try to lookup the catalog resource for a system ID LIBXML_CATALOG_ENABLED Do a complete resolution lookup of an URI LIBXML_CATALOG_ENABLED Used to set the debug level for catalog operation, 0 disable debugging, 1 enable it LIBXML_CATALOG_ENABLED Allows to set the preference between public and system for deletion in XML Catalog resolution. C.f. section 4.1.1 of the spec Values accepted are XML_CATA_PREFER_PUBLIC or XML_CATA_PREFER_SYSTEM LIBXML_CATALOG_ENABLED Used to set the user preference w.r.t. to what catalogs should be accepted Generic front-end for encoding handler close function Front-end for the encoding handler input function, but handle only the very first line, i.e. limit itself to 45 chars. Generic front-end for the encoding handler input function Generic front-end for the encoding handler output function a first call with @in == NULL has to be made firs to initiate the output in case of non-stateless encoding needing to initiate their state or the output (like the BOM in UTF16). In case of UTF8 sequence conversion errors for the given encoder, the content will be automatically remapped to a CharRef sequence. Take a block of chars in the original encoding and try to convert it to an UTF-8 block of chars out. Take a block of UTF-8 chars in and try to convert it to another encoding. Note: a first call designed to produce heading info is called with in = NULL. If stateful this should also initialize the encoder state. Does a binary search of the range table to determine if char is valid a strdup for char's to xmlChar's a strndup for char's to xmlChar's function checks to see if @path is a valid source (file, socket...) for XML. if stat is not available on the target machine, Check an input in case it was created from an HTTP stream, in that case it will handle encoding and update of the base URL in case of redirection. It also checks for HTTP errors in which case the input is cleanly freed up and an appropriate error is raised in context 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])+ Checks @utf for being valid UTF-8. @utf is assumed to be null-terminated. This function is not super-strict, as it will allow longer UTF-8 sequences than necessary. Note that Java is capable of producing these sequences if provoked. Also note, this routine checks for the 4-byte maximum size, but does not check for 0x10ffff maximum value. check the compiled lib version against the include one. This can warn or immediately kill the application Cleanup the memory allocated for the char encoding support, it unregisters all the encoding handlers and the aliases. Unregisters all aliases Additional cleanup for multi-threading clears the entire input callback table. this includes the compiled-in I/O. Free up all the memory associated with memorys LIBXML_OUTPUT_ENABLED clears the entire output callback table. this includes the compiled-in I/O callbacks. Cleanup function for the XML library. It tries to reclaim all parsing related global memory allocated for the library processing. It doesn't deallocate any document related memory. Calling this function should not prevent reusing the library but one should call xmlCleanupParser() only when the process has finished using the library or XML document built with it. Cleanup up the predefined entities table. Deprecated call xmlCleanupThreads() is used to to cleanup all the thread related data of the libxml2 library once processing has ended. -- Clear (release memory and reinitialize) node info sequence Clear (release owned resources) and reinitialize a parser context LIBXML_CATALOG_ENABLED Convert all the SGML catalog entries as XML ones Build a copy of an attribute table. append the char value in the array append the char value in the array LIBXML_TREE_ENABLED Do a copy of the document info. If recursive, the content tree will be copied too as well as DTD, namespaces and entities. LIBXML_TREE_ENABLED Do a copy of the dtd. Build a copy of an element content description. Build a copy of an element table. Build a copy of an entity table. Copy an enumeration attribute node (recursive). Save the original error to the new place. Do a copy of the namespace. Do a copy of an namespace list. Do a copy of the node. Do a recursive copy of the node list. Build a copy of a notation table. Do a copy of the attribute. Do a copy of an attribute list. Creates a parser context for an XML in-memory document. create and initialize an empty entities hash table. 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 and initialize an enumeration attribute node. 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 using the XML parser with an existing I/O stream Create the internal subset of a document Create a parser context for an XML in-memory document. LIBXML_PUSH_ENABLED Create a parser context for using the XML parser in push mode. If @buffer and @size are non-NULL, the data is used to detect the encoding. The remaining characters will be parsed so they don't need to be fed in again through xmlParseChunk. To allow content encoding detection, @size should be >= 4 The value of @filename is used for fetching external entities and error/warning reports. Simply creates an empty xmlURI 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 Get the last parsing error registered. parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context NOTE that the file descriptor will not be closed when the reader is closed or reset. parse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context parse an XML document from I/O functions and source and build a tree. This reuses the existing @ctxt parser context parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context Reset a parser context Cleanup the last global error registered. For parsing error this does not change the well-formedness result. Reset a push parser context Applies the options to the parser context 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.) LIBXML_DEBUG_ENABLED Dumps debug information for the attribute LIBXML_DEBUG_ENABLED Dumps debug information for the attribute list LIBXML_DEBUG_ENABLED Dumps debug information for the DTD LIBXML_DEBUG_ENABLED Dumps debug information for the document, it's recursive LIBXML_DEBUG_ENABLED Dumps debug information cncerning the document, not recursive LIBXML_DEBUG_ENABLED Dumps debug information for all the entities in use by the document LIBXML_DEBUG_ENABLED Dumps debug information for the element node, it is recursive LIBXML_DEBUG_ENABLED Dumps debug information for the list of element node, it is recursive LIBXML_DEBUG_ENABLED Dumps debug information for the element node, it is not recursive LIBXML_DEBUG_ENABLED Dumps informations about the string, shorten it if necessary 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 ';' Initialize the default SAX2 handler Unregisters an encoding alias @alias Registers a callback for node destruction Guess the encoding of the entity using the first bytes of the entity content according to the non-normative appendix F of the XML-1.0 recommendation. Create a new dictionary Create a new dictionary, inheriting strings from the read-only dictionnary @sub. On lookup, strings are first searched in the new dictionnary, then in @sub, and if not found are created in the new dictionnary. Free the hash @dict and its contents. The userdata is deallocated with @f if provided. Add the @name to the hash @dict if not present. check if a string is owned by the disctionary Add the QName @prefix:@name to the hash @dict if not present. Increment the reference counter of a dictionary Query the number of elements installed in the hash @dict. Do a copy of the node to a given document. LIBXML_OUTPUT_ENABLED Dump an XML document to an open FILE. LIBXML_OUTPUT_ENABLED Dump an XML document in memory and return the #xmlChar * and it's size. It's up to the caller to free the memory with xmlFree(). Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called LIBXML_OUTPUT_ENABLED Dump the current DOM tree into memory using the character encoding specified by the caller. Note it is up to the caller of this function to free the allocated memory with xmlFree(). Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called LIBXML_OUTPUT_ENABLED Dump an XML document in memory and return the #xmlChar * and it's size in bytes. It's up to the caller to free the memory with xmlFree(). The resulting byte array is zero terminated, though the last 0 is not included in the returned size. LIBXML_OUTPUT_ENABLED Dump the current DOM tree into memory using the character encoding specified by the caller. Note it is up to the caller of this function to free the allocated memory with xmlFree(). LIBXML_OUTPUT_ENABLED Dump an XML document to an open FILE. Get the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...). LIBXML_TREE_ENABLED Set the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...). LIBXML_OUTPUT_ENABLED This will dump the content of the attribute declaration as an XML DTD definition LIBXML_OUTPUT_ENABLED This will dump the content of the attribute table as an XML DTD definition LIBXML_OUTPUT_ENABLED This will dump the content of the element declaration as an XML DTD definition LIBXML_OUTPUT_ENABLED This will dump the content of the element table as an XML DTD definition LIBXML_OUTPUT_ENABLED This will dump the content of the entity table as an XML DTD definition LIBXML_OUTPUT_ENABLED This will dump the content of the entity table as an XML DTD definition LIBXML_OUTPUT_ENABLED This will dump the content the notation declaration as an XML DTD definition LIBXML_OUTPUT_ENABLED This will dump the content of the notation table as an XML DTD definition LIBXML_OUTPUT_ENABLED Dump an XML/HTML node, recursive behaviour, children are printed too. TODO: remove xmlEncodeEntities, once we are not afraid of breaking binary compatibility People must migrate their code to xmlEncodeEntitiesReentrant ! This routine will issue a warning when encountered. Do a global encoding of a string, replacing the predefined entities and non ASCII values with their entities and CharRef counterparts. Contrary to xmlEncodeEntities, this routine is reentrant, and result must be deallocated. Do a global encoding of a string, replacing the predefined entities this routine is reentrant, and result must be deallocated. Callback function used when one needs to be able to track back the provenance of a chunk of nodes inherited from an entity replacement. Handle a redefinition of attribute error External entity loaders types. Close an I/O channel input from FILE * Wrapper around xmlFileOpen_real that try it with an unescaped version of @filename, if this fails fallback to @filename Read @len bytes to @buffer from the I/O channel. Search in the registered set the handler able to read/write that encoding. Deallocate the memory used by an entities hash table. LIBXML_AUTOMATA_ENABLED Free an automata LIBXML_CATALOG_ENABLED Free the memory allocated to a Catalog Free up all the structures used by a document, tree included. Free a DTD structure. Free an element content structure. This is a recursive call ! Deallocate the memory used by an element hash table. Deallocate the memory used by an entities hash table. free an enumeration attribute node (recursive). Signature for a free() implementation. Deallocate the memory used by an ID hash table. Free up an input stream. xmlFreeMutex() is used to reclaim resources associated with a libxml2 token struct. Free a node, this is a recursive behaviour, all the children are freed too. This doesn't unlink the child from the list, use xmlUnlinkNode() first. Free a node and all its siblings, this is a recursive behaviour, all the children are freed too. Deallocate the memory used by an entities hash table. Free up the structures associated to a namespace Free up all the structures associated to the chained namespaces. Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed. Free up the memory used by a buffered parser input LIBXML_PATTERN_ENABLED Free up the memory allocated by @comp LIBXML_PATTERN_ENABLED Free up the memory allocated by all the elements of @comp Free one attribute, all the content is freed too Free a property and all its siblings, all the children are freed too. xmlRFreeMutex() is used to reclaim resources associated with a reentrant mutex. Deallocate the memory used by an Ref hash table. LIBXML_READER_ENABLED Deallocate all the resources associated to the reader LIBXML_WRITER_ENABLED Deallocate all the resources associated to the writer Free up the xmlURI struct Free a validation context structure. Provides the memory access functions set currently in use The mallocAtomicFunc is specialized for atomic block allocations (i.e. of areas useful for garbage collected memory allocators Override the default memory access functions with a new set This has to be called before any other libxml routines ! The mallocAtomicFunc is specialized for atomic block allocations (i.e. of areas useful for garbage collected memory allocators Should this be blocked if there was already some allocations done ? Signature of the function to use when there is an error and no parsing or validity context available . Types are XML_BUFFER_ALLOC_EXACT - use exact sizes, keeps memory usage down XML_BUFFER_ALLOC_DOUBLEIT - double buffer when extra needed, improves performance Search in the registered set the handler able to read/write that encoding. The "canonical" name for XML encoding. C.f. http://www.w3.org/TR/REC-xml#charencoding Section 4.3.3 Character Encoding in Entities get the default compression mode used, ZLIB based. get the compression ratio for a document, ZLIB based Do an entity lookup in the document entity hash table and Search the DTD for the description of this attribute on this element. Search the DTD for the description of this element Do an entity lookup in the DTD entity hash table and Search the DTD for the description of this notation Search the DTD for the description of this qualified attribute on this element. Search the DTD for the description of this element Lookup an encoding name for the given alias. Get the default external entity resolver function for the application Read the current value of one feature of this parser instance Copy at most *@len feature names into the @result array xmlGetGlobalState() is called to retrieve the global state for a thread. Search the attribute declaring the given ID Get the internal subset of a document Search the last child of a node. Get the last global error registered. This is per thread if compiled with thread support. Get line number of @node. This requires activation of this option before invoking the parser by calling xmlLineNumbersDefault(1) Search and get the value of an attribute associated to a node This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. This function is similar to xmlGetProp except it will accept only an attribute in no namespace. LIBXML_TREE_ENABLED Build a structure based Path for the given node LIBXML_TREE_ENABLED Search all the namespace applying to a given element. Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. Do an entity lookup in the internal and external subsets and Check whether this name is an predefined entity. Search and get the value of an attribute associated to a node This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. NOTE: this function acts independently of namespaces associated to the attribute. Use xmlGetNsProp() or xmlGetNoNsProp() for namespace aware processing. Find the set of references for the supplied ID. xmlGetThreadId() find the current thread ID number Read one UTF8 Char from @utf 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. Search for an attribute associated to a node This attribute has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. Search an attribute associated to a node This function also looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. Add the @userdata to the hash @table. This can later be retrieved by using the @name. Duplicate names generate errors. Add the @userdata to the hash @table. This can later be retrieved by using the (@name, @name2) tuple. Duplicate tuples generate errors. Add the @userdata to the hash @table. This can later be retrieved by using the tuple (@name, @name2, @name3). Duplicate entries generate errors. Callback to copy data from a hash. Scan the hash @table and applied @f to each value. Create a new xmlHashTablePtr. Callback to free data from a hash. Free the hash @table and its contents. The userdata is deallocated with @f if provided. Find the userdata specified by the @name. Find the userdata specified by the (@name, @name2) tuple. Find the userdata specified by the (@name, @name2, @name3) tuple. Find the userdata specified by the QName @prefix:@name/@name. Find the userdata specified by the QNames tuple Find the userdata specified by the (@name, @name2, @name3) tuple. Find the userdata specified by the @name and remove it from the hash @table. Existing userdata for this tuple will be removed and freed with @f. Find the userdata specified by the (@name, @name2) tuple and remove it from the hash @table. Existing userdata for this tuple will be removed and freed with @f. Find the userdata specified by the (@name, @name2, @name3) tuple and remove it from the hash @table. Existing userdata for this tuple will be removed and freed with @f. Scan the hash @table and applied @f to each value. Scan the hash @table and applied @f to each value matching (@name, @name2, @name3) tuple. If one of the names is null, the comparison is considered to match. Scan the hash @table and applied @f to each value. Scan the hash @table and applied @f to each value matching (@name, @name2, @name3) tuple. If one of the names is null, the comparison is considered to match. Callback when scanning data in a hash with the simple scanner. Callback when scanning data in a hash with the full scanner. Query the number of elements installed in the hash @table. Add the @userdata to the hash @table. This can later be retrieved by using the @name. Existing entry for this @name will be removed and freed with @f if found. Add the @userdata to the hash @table. This can later be retrieved by using the (@name, @name2) tuple. Existing entry for this tuple will be removed and freed with @f if found. Add the @userdata to the hash @table. This can later be retrieved by using the tuple (@name, @name2, @name3). Existing entry for this tuple will be removed and freed with @f if found. LIBXML_FTP_ENABLED Close an FTP I/O channel LIBXML_FTP_ENABLED check if the URI matches an FTP one LIBXML_FTP_ENABLED open an FTP I/O channel LIBXML_FTP_ENABLED Read @len bytes to @buffer from the I/O channel. LIBXML_HTTP_ENABLED Close an HTTP I/O channel LIBXML_HTTP_ENABLED check if the URI matches an HTTP one LIBXML_HTTP_ENABLED open an HTTP I/O channel LIBXML_HTTP_ENABLED Open a temporary buffer to collect the document for a subsequent HTTP POST request. Non-static as is called from the output buffer creation routine. LIBXML_HTTP_ENABLED Read @len bytes to @buffer from the I/O channel. Load and parse a DTD Initialize the char encoding support, it registers the default encoding supported. NOTE: while public, this function usually doesn't need to be called in normal processing. Additional initialisation for multi-threading Initialize the memory layer. -- Initialize (set to initial state) node info sequence Initialization function for the XML parser. This is not reentrant. Call once before processing in case of use in multithreaded programs. Initialize a parser context xmlInitThreads() is used to to initialize all the thread related data of the libxml2 library. LIBXML_CATALOG_ENABLED Do the catalog initialization. this function is not thread safe, catalog initialization should preferably be done once at startup xmlInitializeGlobalState() initialize a global state with all the default values of the library. Set up the predefined entities. Deprecated call Callback used in the I/O Input API to close the resource Callback used in the I/O Input API to detect if the current handler can provide input fonctionnalities for this resource. Callback used in the I/O Input API to open the resource Callback used in the I/O Input API to read the resource This function is DEPRECATED. Use xmlIsBaseChar_ch or xmlIsBaseCharQ instead This function is DEPRECATED. Use xmlIsBlank_ch or xmlIsBlankQ instead Checks whether this node is an empty or whitespace only (and possibly ignorable) text-node. This function is DEPRECATED. Use xmlIsChar_ch or xmlIsCharQ instead This function is DEPRECATED. Use xmlIsCombiningQ instead This function is DEPRECATED. Use xmlIsDigit_ch or xmlIsDigitQ instead This function is DEPRECATED. Use xmlIsExtender_ch or xmlIsExtenderQ instead Determine whether an attribute is of type ID. In case we have DTD(s) then this is done if DTD loading has been requested. In the case of HTML documents parsed with the HTML parser, then ID detection is done systematically. This function is DEPRECATED. Use xmlIsIdeographicQ instead Check whether the character is allowed by the production [84] Letter ::= BaseChar | Ideographic xmlIsMainThread() check whether the current thread is the main thread. Search in the DtDs whether an element accept Mixed content (or ANY) basically if it is supposed to accept text childs This function is DEPRECATED. Use xmlIsPubidChar_ch or xmlIsPubidCharQ instead Determine whether an attribute is of type Ref. In case we have DTD(s) then this is simple, otherwise we use an heuristic: name Ref (upper or lowercase). Try to find if the document correspond to an XHTML DTD Set and return the previous value for default blanks text nodes support. The 1.x version of the parser used an heuristic to try to detect ignorable white spaces. As a result the SAX callback was generating xmlSAX2IgnorableWhitespace() callbacks instead of characters() one, and when using the DOM output text nodes containing those blanks were not generated. The 2.x and later version will switch to the XML standard way and ignorableWhitespace() are only generated when running the parser in validating mode and when the current element doesn't allow CDATA or mixed content. This function is provided as a way to force the standard behavior on 1.X libs and to switch back to the old mode for compatibility when running 1.X client code on 2.X . Upgrade of 1.X code should be done by using xmlIsBlankNode() commodity function to detect the "empty" nodes generated. This value also affect autogeneration of indentation when saving code if blanks sections are kept, indentation is not generated. Set and return the previous value for enabling line numbers in elements contents. This may break on old application and is turned off by default. See Returns. Insert data in the ordered list at the end for this value Remove the all data in the list Move all the element from the old list in the new list Create a new list Callback function used to compare 2 data. Callback function used to free data from a list. Deletes the list and its associated data Duplicate the list Is the list empty ? Get the last element in the list Get the first element in the list Insert data in the ordered list at the beginning for this value include all the elements of the second list in the first one and clear the second list Removes the last element in the list Removes the first element in the list add the new data at the end of the list add the new data at the beginning of the list Remove the all instance associated to data in the list Remove the first instance associated to data in the list Remove the last instance associated to data in the list Reverse the order of the elements in the list Search the list in reverse order for an existing value of @data Walk all the element of the list in reverse order and apply the walker function to it Search the list for an existing value of @data Get the number of elements in the list Sort all the elements in the list Walk all the element of the first from first to last and apply the walker function to it Callback function used when walking a list with xmlListWalk(). LIBXML_CATALOG_ENABLED Load the catalog and build the associated data structures. This can be either an XML Catalog or an SGML Catalog It will recurse in SGML CATALOG entries. On the other hand XML Catalogs are not handled recursively. LIBXML_CATALOG_ENABLED Load the catalog and makes its definitions effective for the default external entity loader. It will recurse in SGML CATALOG entries. this function is not thread safe, catalog initialization should preferably be done once at startup LIBXML_CATALOG_ENABLED Load the catalogs and makes their definitions effective for the default external entity loader. this function is not thread safe, catalog initialization should preferably be done once at startup Load an external entity, note that the use of this function for unparsed entities may generate problems TODO: a more generic External entity API must be designed LIBXML_CATALOG_ENABLED Load an SGML super catalog. It won't expand CATALOG or DELEGATE references. This is only needed for manipulating SGML Super Catalogs like adding and removing CATALOG or DELEGATE entries. xmlLockLibrary() is used to take out a re-entrant lock on the libxml2 library. LIBXML_DEBUG_ENABLED Count the children of @node. LIBXML_DEBUG_ENABLED Dump to @output the type and name of @node. a malloc() equivalent, with logging of the allocation info. Signature for a malloc() implementation. a malloc() equivalent, with logging of the allocation info. show in-extenso the memory blocks allocated Provides the memory access functions set currently in use Override the default memory access functions with a new set This has to be called before any other libxml routines ! Should this be blocked if there was already some allocations done ? show a show display of the memory allocated, and dump the @nr last allocated areas which were not freed a strdup() equivalent, with logging of the allocation info. Provides the amount of memory currently allocated Dump in-extenso the memory blocks allocated to the file .memorylist xmlMutexLock() is used to lock a libxml2 token. xmlMutexUnlock() is used to unlock a libxml2 token. 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 LIBXML_FTP_ENABLED Check if there is a response from the FTP server after a command. LIBXML_FTP_ENABLED Cleanup the FTP protocol layer. This cleanup proxy informations. LIBXML_FTP_ENABLED Close the connection and both control and transport LIBXML_FTP_ENABLED Close the data connection from the server LIBXML_FTP_ENABLED Tries to open a control connection LIBXML_FTP_ENABLED Tries to open a control connection to the given server/port LIBXML_FTP_ENABLED Tries to change the remote directory LIBXML_FTP_ENABLED Tries to delete an item (file or directory) from server LIBXML_FTP_ENABLED Frees the context after closing the connection. LIBXML_FTP_ENABLED Fetch the given file from the server. All data are passed back in the callbacks. The last callback has a size of 0 block. LIBXML_FTP_ENABLED Try to open a data connection to the server. Currently only passive mode is supported. LIBXML_FTP_ENABLED Get the response from the FTP server after a command. LIBXML_FTP_ENABLED Initiate fetch of the given file from the server. LIBXML_FTP_ENABLED Initialize the FTP protocol layer. Currently it just checks for proxy informations, and get the hostname LIBXML_FTP_ENABLED Do a listing on the server. All files info are passed back in the callbacks. LIBXML_FTP_ENABLED Allocate and initialize a new FTP context. LIBXML_FTP_ENABLED Start to fetch the given ftp:// resource LIBXML_FTP_ENABLED Setup the FTP proxy informations. This can also be done by using ftp_proxy ftp_proxy_user and ftp_proxy_password environment variables. LIBXML_FTP_ENABLED Send a QUIT command to the server LIBXML_FTP_ENABLED This function tries to read @len bytes from the existing FTP connection and saves them in @dest. This is a blocking call. LIBXML_FTP_ENABLED (Re)Initialize the FTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like ftp://myproxy/ or ftp://myproxy:3128/ A NULL URL cleans up proxy informations. LIBXML_FTP_ENABLED Update an FTP context by parsing the URL and finding new path it indicates. If there is an error in the protocol, hostname, port or other information, the error is raised. It indicates a new connection has to be established. LIBXML_HTTP_ENABLED Get the authentication header of an HTTP context LIBXML_HTTP_ENABLED Cleanup the HTTP protocol layer. LIBXML_HTTP_ENABLED This function closes an HTTP context, it ends up the connection and free all data related to it. LIBXML_HTTP_ENABLED Provides the specified encoding if specified in the HTTP headers. LIBXML_HTTP_ENABLED This function try to fetch the indicated resource via HTTP GET and save it's content in the file. LIBXML_HTTP_ENABLED Initialize the HTTP protocol layer. Currently it just checks for proxy informations LIBXML_HTTP_ENABLED This function try to open a connection to the indicated resource via HTTP using the given @method, adding the given extra headers and the input buffer for the request content. LIBXML_HTTP_ENABLED This function try to open a connection to the indicated resource via HTTP using the given @method, adding the given extra headers and the input buffer for the request content. LIBXML_HTTP_ENABLED Provides the specified Mime-Type if specified in the HTTP headers. LIBXML_HTTP_ENABLED This function try to open a connection to the indicated resource via HTTP GET. LIBXML_HTTP_ENABLED This function try to open a connection to the indicated resource via HTTP GET. LIBXML_HTTP_ENABLED This function tries to read @len bytes from the existing HTTP connection and saves them in @dest. This is a blocking call. LIBXML_HTTP_ENABLED Provides the specified redirection URL if available from the HTTP header. LIBXML_HTTP_ENABLED Get the latest HTTP return code received LIBXML_HTTP_ENABLED LIBXML_OUTPUT_ENABLED This function saves the output of the HTTP transaction to a file It closes and free the context at the end LIBXML_HTTP_ENABLED (Re)Initialize the HTTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like http://myproxy/ or http://myproxy:3128/ A NULL URL cleans up proxy informations. LIBXML_AUTOMATA_ENABLED Create a new automata Creation of a new node containing a CDATA block. LIBXML_CATALOG_ENABLED create a new Catalog. Create and registers an xmlCharEncodingHandler. Creation of a new character reference node. Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (NULL). If @ns is NULL, the newly created element inherits the namespace of @parent. If @content is non NULL, a child list containing the TEXTs and ENTITY_REFs node will be created. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references. XML special chars must be escaped first by using xmlEncodeEntitiesReentrant(), or xmlNewTextChild() should be used. Creation of a new node containing a comment. Creates a new XML document Creation of a new node containing a comment within a document. LIBXML_TREE_ENABLED Creation of a new Fragment node. Creation of a new node element within a document. @ns and @content are optional (NULL). NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNode() if you don't need entities support. Creation of a new node element within a document. @ns and @content are optional (NULL). NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNode() if you don't need entities support. Create a new property carried by a document. Creation of a new node element within a document. @ns and @content are optional (NULL). Creation of a new text node within a document. Creation of a new text node with an extra content length parameter. The text node pertain to a given document. Creation of a new DTD for the external subset. To create an internal subset, use xmlCreateIntSubset(). Allocate an element content structure. Create a new input stream based on an xmlEntityPtr Creation of a Namespace, the old way using PI and without scoping DEPRECATED !!! It now create a namespace on the root element of the document if found. Create a new input stream structure encapsulating the @input into a stream suitable for the parser. Create a new input stream based on a file or an URL. Create a new input stream structure xmlNewMutex() is used to allocate a libxml2 token struct for use in synchronizing access to data. Creation of a new node element. @ns is optional (NULL). Creation of a new node element. @ns is optional (NULL). Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. We use href==NULL in the case of an element creation where the namespace was not defined. Create a new property tagged with a namespace and carried by a node. Create a new property tagged with a namespace and carried by a node. Creation of a processing instruction element. Allocate and initialize a new parser context. Create a new property carried by a node. xmlRNewMutex() is used to allocate a reentrant mutex for use in synchronizing access to data. token_r is a re-entrant lock and thus useful for synchronizing access to data structures that may be manipulated in a recursive fashion. Creation of a new reference node. Create a new input stream based on a memory buffer. Creation of a new text node. Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (NULL). If @ns is NULL, the newly created element inherits the namespace of @parent. If @content is non NULL, a child TEXT node will be created containing the string @content. NOTE: Use xmlNewChild() if @content will contain entities that need to be preserved. Use this function, xmlNewTextChild(), if you need to ensure that reserved XML chars that might appear in @content, such as the ampersand, greater-than or less-than signs, are automatically replaced by their XML escaped entity representations. Creation of a new text node with an extra parameter for the content's length LIBXML_READER_ENABLED Create an xmlTextReader structure fed with @input LIBXML_READER_ENABLED Create an xmlTextReader structure fed with the resource at @URI LIBXML_WRITER_ENABLED Create a new xmlNewTextWriter structure using an xmlOutputBufferPtr LIBXML_WRITER_ENABLED Create a new xmlNewTextWriter structure with @*doc as output LIBXML_WRITER_ENABLED Create a new xmlNewTextWriter structure with @uri as output LIBXML_WRITER_ENABLED Create a new xmlNewTextWriter structure with @buf as output TODO: handle compression LIBXML_WRITER_ENABLED Create a new xmlNewTextWriter structure with @ctxt as output TODO: handle compression LIBXML_WRITER_ENABLED Create a new xmlNewTextWriter structure with @doc as output starting at @node Allocate a validation context structure. Skip to the next char input char. A specific entity loader disabling network accesses, though still allowing local catalog accesses for resolution. Append the extra substring to the node content. Append the extra substring to the node content. Read the value of a node @cur, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). Entity references are substituted. Fills up the buffer @buffer with this value LIBXML_OUTPUT_ENABLED Dump an XML node, recursive behaviour,children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called LIBXML_OUTPUT_ENABLED Dump an XML node, recursive behaviour, children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called Searches for the BASE URL. The code should work on both XML and HTML document even if base mechanisms are completely different. It returns the base as defined in RFC 2396 sections 5.1.1. Base URI within Document Content and 5.1.2. Base URI from the Encapsulating Entity However it does not return the document base (5.1.3), use xmlDocumentGetBase() for this Read the value of a node, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). Entity references are substituted. Searches the language of a node, i.e. the values of the xml:lang attribute or the one carried by the nearest ancestor. Searches the space preserving behaviour of a node, i.e. the values of the xml:space attribute or the one carried by the nearest ancestor. Is this node a Text node ? LIBXML_TREE_ENABLED Builds the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs, contrary to xmlNodeListGetString() this function doesn't do any character encoding handling. Build the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs LIBXML_TREE_ENABLED Set (or reset) the base URI of a node, i.e. the value of the xml:base attribute. Replace the content of a node. LIBXML_TREE_ENABLED Replace the content of a node. LIBXML_TREE_ENABLED Set the language of a node, i.e. the values of the xml:lang attribute. LIBXML_TREE_ENABLED Set (or reset) the name of a node. LIBXML_TREE_ENABLED Set (or reset) the space preserving behaviour of a node, i.e. the value of the xml:space attribute. Applies the 5 normalization steps to a path string--that is, RFC 2396 Section 5.2, steps 6.c through 6.g. Normalization occurs directly on the string, no new allocation is done This function is obsolete. Please see xmlURIFromPath in uri.c for a better solution. LIBXML_OUTPUT_ENABLED flushes and close the output I/O channel and free up all the associated resources LIBXML_OUTPUT_ENABLED Create a buffered output for the progressive saving to a file descriptor LIBXML_OUTPUT_ENABLED Create a buffered output for the progressive saving to a FILE * buffered C I/O LIBXML_OUTPUT_ENABLED Create a buffered output for the progressive saving of a file If filename is "-' then we use stdout as the output. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. TODO: currently if compression is set, the library only support writing to a local file. Registers a callback for URI output file handling LIBXML_OUTPUT_ENABLED Create a buffered output for the progressive saving to an I/O handler LIBXML_OUTPUT_ENABLED flushes the output I/O channel LIBXML_OUTPUT_ENABLED Write the content of the array in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes. LIBXML_OUTPUT_ENABLED Write the content of the string in the output I/O buffer This routine escapes the caracters and then handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes. LIBXML_OUTPUT_ENABLED Write the content of the string in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes. LIBXML_OUTPUT_ENABLED Callback used in the I/O Output API to close the resource LIBXML_OUTPUT_ENABLED Callback used in the I/O Output API to detect if the current handler can provide output fonctionnalities for this resource. LIBXML_OUTPUT_ENABLED Callback used in the I/O Output API to open the resource LIBXML_OUTPUT_ENABLED Callback used in the I/O Output API to write to the resource 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 "&lt;") 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 a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)* Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)* Parse escaped pure raw content. [18] CDSect ::= CDStart CData CDEnd [19] CDStart ::= '<![CDATA[' [20] Data ::= (Char* - (Char* ']]>' Char*)) [21] CDEnd ::= ']]>' LIBXML_CATALOG_ENABLED parse an XML file and build a tree. It's like xmlParseFile() except it bypass all catalog lookups. 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 "&gt;", and must, for compatibility, be escaped using "&gt;" 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 ::= [^<&]* - ([^<&]* ']]>' [^<&]*) Compare the string to the encoding schemes already known. Note that the comparison is case insensitive accordingly to the section [XML] 4.3.3 Character Encoding in Entities. 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. LIBXML_PUSH_ENABLED Parse a Chunk of memory 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 external general entity within an existing parsing context An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content Load and parse an external subset. 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 an XML in-memory document and build a tree. 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 document (and build a tree if using the standard SAX interface). [1] document ::= prolog element Misc* [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? 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 an XML external entity out of context and build a tree. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk 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 a general parsed entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content Parse an external general entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content 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 an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. Parse a well-balanced chunk of an XML document within the context (DTD, namespaces, etc ...) of the given node. The allowed sequence for the data is a Well Balanced Chunk defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)* 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 in-memory block and build a tree. 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 (S 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 (S 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 an URI URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ] Parse an URI reference string and fills in the appropriate fields of the @uri structure URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ] 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? '?>' Insert node info record into the sorted sequence Display and format an error messages, gives file, line, position and extra parameters. Find the parser node info struct for a given node xmlParserFindNodeInfoIndex : Find the index that the info record for the given node is or should be at in a sorted sequence lookup the directory for that file [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 Create a buffered parser input for the progressive parsing for the input from a file descriptor Create a buffered parser input for the progressive parsing of a FILE * buffered C I/O Create a buffered parser input for the progressive parsing of a file If filename is "-' then we use stdin as the input. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. Do an encoding check if enc == XML_CHAR_ENCODING_NONE Registers a callback for URI input file handling Create a buffered parser input for the progressive parsing for the input from an I/O handler Create a buffered parser input for the progressive parsing for the input from a memory area. Create a buffered parser input for the progressive parsing for the input from an immutable memory area. This will not copy the memory area to the buffer, but the memory is expected to be available until the end of the parsing, this is useful for example when using mmap'ed file. Grow up the content of the input buffer, the old data are preserved This routine handle the I18N transcoding to internal UTF-8 This routine is used when operating the parser in normal (pull) mode TODO: one should be able to remove one extra copy by copying directly onto in->buffer or in->raw Push the content of the arry in the input buffer This routine handle the I18N transcoding to internal UTF-8 This is used when operating the parser in progressive (push) mode. Refresh the content of the input buffer, the old data are considered consumed This routine handle the I18N transcoding to internal UTF-8 Callback for freeing some parser input allocations. This function increase the input for the parser. It tries to preserve pointers to the input buffer, and keep already read data This function refresh the input for the parser. It doesn't try to preserve pointers to the input buffer, and discard already read data This function removes used input for the parser. Displays current context within the input content for error tracking Displays the associated file and line informations for the current input Display and format an validity error messages, gives file, line, position and extra parameters. Display and format a validity warning messages, gives file, line, position and extra parameters. Display and format a warning messages, gives file, line, position and extra parameters. LIBXML_PATTERN_ENABLED Test wether the node matches the pattern LIBXML_PATTERN_ENABLED Compile a pattern. Set and return the previous value for enabling pedantic warnings. xmlPopInput: the current input pointed by ctxt->input came to an end pop it and return the next char. Clear the top input callback from the input stack. this includes the compiled-in I/O. Prints the URI in the stream @steam. xmlPushInput: switch to a new input stream which is stacked on top of the previous one(s). xmlRMutexLock() is used to lock a libxml2 token_r. xmlRMutexUnlock() is used to unlock a libxml2 token_r. parse an XML in-memory document and build a tree. parse an XML from a file descriptor and build a tree. NOTE that the file descriptor will not be closed when the reader is closed or reset. parse an XML file from the filesystem or the network. parse an XML document from I/O functions and source and build a tree. parse an XML in-memory document and build a tree. LIBXML_READER_ENABLED Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. LIBXML_READER_ENABLED Create an xmltextReader for an XML from a file descriptor. The parsing flags @options are a combination of xmlParserOption. NOTE that the file descriptor will not be closed when the reader is closed or reset. LIBXML_READER_ENABLED parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption. LIBXML_READER_ENABLED Create an xmltextReader for an XML document from I/O functions and source. The parsing flags @options are a combination of xmlParserOption. LIBXML_READER_ENABLED Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. LIBXML_READER_ENABLED Setup an xmltextReader to parse an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. LIBXML_READER_ENABLED Setup an xmltextReader to parse an XML from a file descriptor. NOTE that the file descriptor will not be closed when the reader is closed or reset. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. LIBXML_READER_ENABLED parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. LIBXML_READER_ENABLED Setup an xmltextReader to parse an XML document from I/O functions and source. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. LIBXML_READER_ENABLED Setup an xmltextReader to parse an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. LIBXML_READER_ENABLED Setup an xmltextReader to parse a preparsed XML document. This reuses the existing @reader xmlTextReader. LIBXML_READER_ENABLED Create an xmltextReader for a preparsed document. Signature for a realloc() implementation. a realloc() equivalent, with logging of the allocation info. This function checks that all the namespaces declared within the given tree are properly declared. This is needed for example after Copy or Cut and then paste operations. The subtree may still hold pointers to namespace declarations outside the subtree or invalid/masked. As much as possible the function try to reuse the existing namespaces found in the new environment. If not possible the new namespaces are redeclared on @tree at the top of the given subtree. parse an XML in-memory document and build a tree. In the case the document is not Well Formed, a tree is built anyway parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. In the case the document is not Well Formed, a tree is built anyway parse an XML in-memory block and build a tree. In the case the document is not Well Formed, a tree is built anyway LIBXML_REGEXP_ENABLED LIBXML_REGEXP_ENABLED Push one input token in the execution context LIBXML_REGEXP_ENABLED Push one input token in the execution context LIBXML_REGEXP_ENABLED Free the structures associated to a regular expression evaulation context. LIBXML_REGEXP_ENABLED Free a regexp LIBXML_REGEXP_ENABLED Build a context used for progressive evaluation of a regexp. LIBXML_REGEXP_ENABLED Parses a regular expression conforming to XML Schemas Part 2 Datatype Appendix F and builds an automata suitable for testing strings against that regular expression LIBXML_REGEXP_ENABLED Check if the regular expression generates the value LIBXML_REGEXP_ENABLED Check if the regular expression is determinist LIBXML_REGEXP_ENABLED Print the content of the compiled regular expression Register the char encoding handler, surprising, isn't it ? Registers the default compiled-in I/O handlers. LIBXML_OUTPUT_ENABLED Registers the default compiled-in I/O handlers. LIBXML_HTTP_ENABLED By default, libxml submits HTTP output requests using the "PUT" method. Calling this method changes the HTTP output method to use the "POST" method instead. Register a new set of I/O callback for handling parser input. Registers a callback for node creation LIBXML_OUTPUT_ENABLED Register a new set of I/O callback for handling output. LIBXML_SCHEMAS_ENABLED Cleanup the default Schemas type library associated to RelaxNG LIBXML_SCHEMAS_ENABLED LIBXML_OUTPUT_ENABLED Dump a RelaxNG structure back LIBXML_SCHEMAS_ENABLED LIBXML_OUTPUT_ENABLED Dump the transformed RelaxNG tree. LIBXML_SCHEMAS_ENABLED Deallocate a RelaxNG structure. LIBXML_SCHEMAS_ENABLED Free the resources associated to the schema parser context LIBXML_SCHEMAS_ENABLED Free the resources associated to the schema validation context LIBXML_SCHEMAS_ENABLED Get the callback information used to handle errors for a validation context LIBXML_SCHEMAS_ENABLED Get the error and warning callback informations LIBXML_SCHEMAS_ENABLED Create an XML RelaxNGs parser context for that document. Note: since the process of compiling a RelaxNG schemas modifies the document, the @doc parameter is duplicated internally. LIBXML_SCHEMAS_ENABLED Create an XML RelaxNGs parse context for that memory buffer expected to contain an XML RelaxNGs file. LIBXML_SCHEMAS_ENABLED Create an XML RelaxNGs parse context for that file/resource expected to contain an XML RelaxNGs file. LIBXML_SCHEMAS_ENABLED Create an XML RelaxNGs validation context based on the given schema LIBXML_SCHEMAS_ENABLED parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances. *WARNING* this interface is highly subject to change LIBXML_SCHEMAS_ENABLED Set the callback functions used to handle errors for a validation context LIBXML_SCHEMAS_ENABLED Set the error and warning callback informations LIBXML_SCHEMAS_ENABLED Validate a document tree in memory. LIBXML_SCHEMAS_ENABLED Validate a full subtree when xmlRelaxNGValidatePushElement() returned 0 and the content of the node has been expanded. LIBXML_SCHEMAS_ENABLED Pop the element end from the RelaxNG validation stack. LIBXML_SCHEMAS_ENABLED check the CData parsed for validation in the current stack LIBXML_SCHEMAS_ENABLED Push a new element start on the RelaxNG validation stack. LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED Semi private function used to pass informations to a parser context which are a combination of xmlRelaxNGParserFlag . Remove the given attribute from the ID table maintained internally. LIBXML_TREE_ENABLED Unlink and free one attribute, all the content is freed too Note this doesn't work for namespace definition attributes Remove the given attribute from the Ref table maintained internally. LIBXML_TREE_ENABLED Unlink the old node from its current context, prune the new one at the same place. If @cur was already inserted in a document it is first unlinked from its existing context. Cleanup the error. Cleanup the last global error registered. For parsing error this does not change the well-formedness result. An attribute definition has been parsed called when a pcdata block has been parsed receiving some chars from the parser. A xmlSAX2Comment has been parsed. An element definition has been parsed called when the document end has been detected. called when the end of an element has been detected. SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element. An entity definition has been parsed Callback on external subset declaration. Provide the column number of the current parsing point. Get an entity by name Provide the line number of the current parsing point. Get a parameter entity by name Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN" Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd Does this document has an external subset Does this document has an internal subset receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use xmlSAX2Characters Initialize the default XML SAX2 handler LIBXML_DOCB_ENABLED Initialize the default DocBook SAX2 handler LIBXML_HTML_ENABLED Initialize the default HTML SAX2 handler Callback on internal subset declaration. Is this document tagged standalone ? What to do when a notation declaration has been parsed. A processing instruction has been parsed. called when an entity xmlSAX2Reference is detected. The entity loader, to control the loading of external entities, the application can either: - override this xmlSAX2ResolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case. called when the document start being processed. called when an opening tag has been processed. SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element. What to do when an unparsed entity declaration is parsed Set the default version of SAX used globally by the library. By default, during initialization the default is set to 2. Note that it is generally a better coding style to use xmlSAXVersion() to set up the version explicitly for a given parsing context. Load and parse an external subset. parse an XML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. parse an XML external entity out of context and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. User data (void *) is stored within the parser context in the context's _private member, so it is available nearly everywhere in libxml parse an XML in-memory block and use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. parse an XML in-memory block and use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. User data (void *) is stored within the parser context in the context's _private member, so it is available nearly everywhere in libxml parse an XML file and call the given SAX handler routines. Automatic support for ZLIB/Compress compressed document is provided A better SAX parsing routine. parse an XML in-memory buffer and call the given SAX handler routines. Initialize the default XML SAX handler according to the version LIBXML_OUTPUT_ENABLED Close a document saving context, i.e. make sure that all bytes have been output and free the associated data. LIBXML_OUTPUT_ENABLED Save a full document to a saving context TODO: The function is not fully implemented yet as it does not return the byte count but 0 instead LIBXML_OUTPUT_ENABLED Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used. LIBXML_OUTPUT_ENABLED Dump an XML document, converting it to the given encoding LIBXML_OUTPUT_ENABLED Dump an XML document to an I/O buffer. LIBXML_OUTPUT_ENABLED Flush a document saving context, i.e. make sure that all bytes have been output. LIBXML_OUTPUT_ENABLED Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used. If @format is set then the document will be indented on output. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called LIBXML_OUTPUT_ENABLED Dump an XML document to a file or an URL. LIBXML_OUTPUT_ENABLED Dump an XML document to an I/O buffer. NOTE: the I/O buffer is closed as part of the call. LIBXML_OUTPUT_ENABLED Set a custom escaping function to be used for text in attribute content LIBXML_OUTPUT_ENABLED Set a custom escaping function to be used for text in element content LIBXML_OUTPUT_ENABLED Create a document saving context serializing to a file descriptor with the encoding and the options given. LIBXML_OUTPUT_ENABLED Create a document saving context serializing to a filename or possibly to an URL (but this is less reliable) with the encoding and the options given. LIBXML_OUTPUT_ENABLED Create a document saving context serializing to a file descriptor with the encoding and the options given LIBXML_OUTPUT_ENABLED Save a subtree starting at the node parameter to a saving context TODO: The function is not fully implemented yet as it does not return the byte count but 0 instead Save the URI as an escaped string 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)* LIBXML_SCHEMAS_ENABLED Checks the default values types, especially for facets LIBXML_SCHEMAS_ENABLED Cleanup the default XML Schemas type library LIBXML_SCHEMAS_ENABLED Removes and normalize white spaces in the string LIBXML_SCHEMAS_ENABLED Compare 2 values LIBXML_SCHEMAS_ENABLED LIBXML_OUTPUT_ENABLED Dump a Schema structure. LIBXML_SCHEMAS_ENABLED Deallocate a Schema structure. LIBXML_SCHEMAS_ENABLED Deallocate a Schema Facet structure. LIBXML_SCHEMAS_ENABLED Free the resources associated to the schema parser context LIBXML_SCHEMAS_ENABLED Deallocate a Schema Type structure. LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED Cleanup the default XML Schemas type library LIBXML_SCHEMAS_ENABLED Deallocates a wildcard structure. LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED Gives you the type struct for a built-in type by its type id. LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED Get the callback information used to handle errors for a parser context LIBXML_SCHEMAS_ENABLED Lookup a type in the default XML Schemas type library LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED Initialize the default XML Schemas type library LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED Create an XML Schemas parse context for that document. NB. The document may be modified during the parsing process. LIBXML_SCHEMAS_ENABLED Allocate a new Facet structure. LIBXML_SCHEMAS_ENABLED Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file. LIBXML_SCHEMAS_ENABLED Create an XML Schemas parse context for that file/resource expected to contain an XML Schemas file. LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances. *WARNING* this interface is highly subject to change LIBXML_SCHEMAS_ENABLED Set the callback functions used to handle errors for a validation context LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val. LIBXML_SCHEMAS_ENABLED Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val. This one does apply any normalization to the value. LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED Check a value against a facet condition LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED Checks the value of a list simple type against a facet. LIBXML_SCHEMAS_ENABLED Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val. LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED LIBXML_SCHEMAS_ENABLED Search a Ns registered under a given name space for a document. recurse on the parents until it finds the defined namespace or return NULL otherwise. @nameSpace can be NULL, this is a search for the default namespace. We don't allow to cross entities boundaries. If you don't declare the namespace within those you will be in troubles !!! A warning is generated to cover this case. Search a Ns aliasing a given URI. Recurse on the parents until it finds the defined namespace or return NULL otherwise. Set the buffer allocation method. Types are XML_BUFFER_ALLOC_EXACT - use exact sizes, keeps memory usage down XML_BUFFER_ALLOC_DOUBLEIT - double buffer when extra needed, improves performance set the default compression mode used, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression) set the compression ratio for a document, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression) Set the function to call call back when a xml reference has been made Changes the defaultexternal entity resolver function for the application Change the current value of one feature of this parser instance Function to reset the handler and the error context for out of context error messages. This simply means that @handler will be called for subsequent error messages while not parsing nor validating. And @ctx will be passed as first argument to @handler One can simply force messages to be emitted to another FILE * than stderr by setting @ctx to this file handle and @handler to NULL. For multi-threaded applications, this must be set separately for each thread. update all nodes in the list to point to the right document Associate a namespace to a node, a posteriori. LIBXML_TREE_ENABLED Set (or reset) an attribute carried by a node. The ns structure must be in scope, this is not checked. LIBXML_TREE_ENABLED Set (or reset) an attribute carried by a node. Function to reset the handler and the error context for out of context structured error messages. This simply means that @handler will be called for subsequent error messages while not parsing nor validating. And @ctx will be passed as first argument to @handler For multi-threaded applications, this must be set separately for each thread. update all nodes under the tree to point to the right document Setup the parser context to parse a new buffer; Clears any prior contents from the parser context. The buffer parameter must not be NULL, but the filename parameter can be LIBXML_DEBUG_ENABLED Implements the XML shell This allow to load, validate, view, modify and save a document using a environment similar to a UNIX commandline. LIBXML_DEBUG_ENABLED Implements the XML shell function "base" dumps the current XML base of the node LIBXML_DEBUG_ENABLED Implements the XML shell function "cat" dumps the serialization node content (XML or HTML). LIBXML_DEBUG_ENABLED This is a generic signature for the XML shell functions. LIBXML_DEBUG_ENABLED Implements the XML shell function "dir" dumps informations about the node (namespace, attributes, content). LIBXML_DEBUG_ENABLED Implements the XML shell function "du" show the structure of the subtree under node @tree If @tree is null, the command works on the current node. LIBXML_DEBUG_ENABLED Implements the XML shell function "ls" Does an Unix like listing of the given node (like a directory) LIBXML_DEBUG_ENABLED Implements the XML shell function "load" loads a new document specified by the filename LIBXML_DEBUG_ENABLED Print node to the output FILE LIBXML_DEBUG_ENABLED Print the xpath error to libxml default error channel LIBXML_DEBUG_ENABLED Prints result to the output FILE LIBXML_DEBUG_ENABLED Implements the XML shell function "pwd" Show the full path from the root to the node, if needed building thumblers when similar elements exists at a given ancestor level. The output is compatible with XPath commands. LIBXML_DEBUG_ENABLED This is a generic signature for the XML shell input function. LIBXML_DEBUG_ENABLED LIBXML_OUTPUT_ENABLED Implements the XML shell function "save" Write the current document to the filename, or it's original name LIBXML_DEBUG_ENABLED Implements the XML shell function "validate" Validate the document, if a DTD path is provided, then the validation is done against the given DTD. LIBXML_DEBUG_ENABLED LIBXML_OUTPUT_ENABLED Implements the XML shell function "write" Write the current node to the filename, it saves the serialization of the subtree under the @node specified 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. This will dump the content of the element content definition Intended just for the debug routine parse an UTF8 encoded XML qualified name string [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName parse an XML qualified name string [NS 5] QName ::= (Prefix ':')? LocalPart [NS 6] Prefix ::= NCName [NS 7] LocalPart ::= NCName parse an XML qualified name string,i Deprecated, unsafe, use xmlSnprintfElementContent Blocks further parser processing Check if both string are equal of have same content Should be a bit more readable and faster than xmlStrEqual() Formats @msg and places result into @buf. Check if a QName is Equal to a given string Formats @msg and places result into @buf. a strcasecmp for xmlChar's a case-ignoring strstr for xmlChar's a strcat for array of xmlChar's. Since they are supposed to be encoded in UTF-8 or an encoding with 8bit based chars, we assume a termination mark of '0'. a strchr for xmlChar's a strcmp for xmlChar's a strdup for array of xmlChar's. Since they are supposed to be encoded in UTF-8 or an encoding with 8bit based chars, we assume a termination mark of '0'. Signature for an strdup() implementation. 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 ';' Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs. Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';' Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs. length of a xmlChar's string a strncasecmp for xmlChar's a strncat for array of xmlChar's, it will extend @cur with the len first bytes of @add. same as xmlStrncat, but creates a new string. The original two strings are not freed. a strncmp for xmlChar's a strndup for array of xmlChar's a strstr for xmlChar's Extract a substring of a given string Signature of the function to use when there is an error and the module handles the new error reporting mechanism. Set and return the previous value for default entity support. Initially the parser always keep entity references instead of substituting entity values in the output. This function has to be used to change the default parser behavior SAX::substituteEntities() has to be used for changing that on a file by file basis. 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. Concat the given string at the end of the existing node content Merge two text nodes into one LIBXML_READER_ENABLED Provides the number of attributes of the current node LIBXML_READER_ENABLED The base URI of the node. LIBXML_READER_ENABLED This method releases any resources allocated by the current instance changes the state to Closed and close any underlying input. LIBXML_READER_ENABLED The base URI of the node. LIBXML_READER_ENABLED The local name of the node. LIBXML_READER_ENABLED The qualified name of the node, equal to Prefix :LocalName. LIBXML_READER_ENABLED The URI defining the namespace associated with the node. LIBXML_READER_ENABLED A shorthand reference to the namespace associated with the node. LIBXML_READER_ENABLED Get an interned string from the reader, allows for example to speedup string name comparisons LIBXML_READER_ENABLED Provides the text value of the node if present LIBXML_READER_ENABLED The xml:lang scope within which the node resides. LIBXML_READER_ENABLED Hacking interface allowing to get the xmlDocPtr correponding to the current document being accessed by the xmlTextReader. NOTE: as a result of this call, the reader will not destroy the associated XML document and calling xmlFreeDoc() on the result is needed once the reader parsing has finished. LIBXML_READER_ENABLED Hacking interface allowing to get the xmlNodePtr correponding to the current node being accessed by the xmlTextReader. This is dangerous because the underlying node may be destroyed on the next Reads. LIBXML_READER_ENABLED The depth of the node in the tree. LIBXML_READER_ENABLED LIBXML_READER_ENABLED Reads the contents of the current node and the full subtree. It then makes the subtree available until the next xmlTextReaderRead() call LIBXML_READER_ENABLED Provides the value of the attribute with the specified qualified name. LIBXML_READER_ENABLED Provides the value of the attribute with the specified index relative to the containing element. LIBXML_READER_ENABLED Provides the value of the specified attribute LIBXML_READER_ENABLED Retrieve the error callback function and user argument. LIBXML_READER_ENABLED Read the parser internal property. LIBXML_READER_ENABLED Method to get the remainder of the buffered XML. this method stops the parser, set its state to End Of File and return the input stream with what is left that the parser did not use. The implementation is not good, the parser certainly procgressed past what's left in reader->input, and there is an allocation problem. Best would be to rewrite it differently. LIBXML_READER_ENABLED Whether the node has attributes. LIBXML_READER_ENABLED Whether the node can have a text value. LIBXML_READER_ENABLED Whether an Attribute node was generated from the default value defined in the DTD or schema. LIBXML_READER_ENABLED Check if the current node is empty LIBXML_READER_ENABLED Retrieve the validity status from the parser context LIBXML_READER_ENABLED The local name of the node. LIBXML_READER_ENABLED Obtain the base URI for the given locator. LIBXML_READER_ENABLED Obtain the line number for the given locator. LIBXML_READER_ENABLED Resolves a namespace prefix in the scope of the current element. LIBXML_READER_ENABLED Moves the position of the current instance to the attribute with the specified qualified name. LIBXML_READER_ENABLED Moves the position of the current instance to the attribute with the specified index relative to the containing element. LIBXML_READER_ENABLED Moves the position of the current instance to the attribute with the specified local name and namespace URI. LIBXML_READER_ENABLED Moves the position of the current instance to the node that contains the current Attribute node. LIBXML_READER_ENABLED Moves the position of the current instance to the first attribute associated with the current node. LIBXML_READER_ENABLED Moves the position of the current instance to the next attribute associated with the current node. LIBXML_READER_ENABLED The qualified name of the node, equal to Prefix :LocalName. LIBXML_READER_ENABLED The URI defining the namespace associated with the node. LIBXML_READER_ENABLED Skip to the node following the current one in document order while avoiding the subtree if any. LIBXML_READER_ENABLED Skip to the node following the current one in document order while avoiding the subtree if any. Currently implemented only for Readers built on a document LIBXML_READER_ENABLED Get the node type of the current node Reference: http://dotgnu.org/pnetlib-doc/System/Xml/XmlNodeType.html LIBXML_READER_ENABLED The value indicating whether to normalize white space and attribute values. Since attribute value and end of line normalizations are a MUST in the XML specification only the value true is accepted. The broken bahaviour of accepting out of range character entities like &#0; is of course not supported either. LIBXML_READER_ENABLED A shorthand reference to the namespace associated with the node. LIBXML_READER_ENABLED This tells the XML Reader to preserve the current node. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished LIBXML_READER_ENABLED This tells the XML Reader to preserve all nodes matched by the pattern. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished LIBXML_READER_ENABLED The quotation mark character used to enclose the value of an attribute. LIBXML_READER_ENABLED Moves the position of the current instance to the next node in the stream, exposing its properties. LIBXML_READER_ENABLED Parses an attribute value into one or more Text and EntityReference nodes. LIBXML_READER_ENABLED Reads the contents of the current node, including child nodes and markup. LIBXML_READER_ENABLED Reads the contents of the current node, including child nodes and markup. LIBXML_READER_ENABLED Gets the read state of the reader. LIBXML_READER_ENABLED Reads the contents of an element or a text node as a string. LIBXML_READER_ENABLED LIBXML_SCHEMAS_ENABLED Use RelaxNG to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is NULL, then RelaxNG validation is desactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated. LIBXML_READER_ENABLED LIBXML_SCHEMAS_ENABLED Use RelaxNG to validate the document as it is processed. Activation is only possible before the first Read(). if @rng is NULL, then RelaxNG validation is desactivated. LIBXML_READER_ENABLED Register a callback function that will be called on error and warnings. If @f is NULL, the default error and warning handlers are restored. LIBXML_READER_ENABLED Change the parser processing behaviour by changing some of its internal properties. Note that some properties can only be changed before any read has been done. LIBXML_READER_ENABLED Register a callback function that will be called on error and warnings. If @f is NULL, the default error and warning handlers are restored. LIBXML_READER_ENABLED Provides the text value of the node if present LIBXML_READER_ENABLED The xml:lang scope within which the node resides. LIBXML_WRITER_ENABLED End the current xml element. LIBXML_WRITER_ENABLED End an xml CDATA section. LIBXML_WRITER_ENABLED End the current xml coment. LIBXML_WRITER_ENABLED End an xml DTD. LIBXML_WRITER_ENABLED End an xml DTD attribute list. LIBXML_WRITER_ENABLED End an xml DTD element. LIBXML_WRITER_ENABLED End an xml DTD entity. LIBXML_WRITER_ENABLED End an xml document. All open elements are closed LIBXML_WRITER_ENABLED End the current xml element. LIBXML_WRITER_ENABLED End the current xml PI. LIBXML_WRITER_ENABLED Flush the output buffer. LIBXML_WRITER_ENABLED End the current xml element. Writes an end tag even if the element is empty LIBXML_WRITER_ENABLED Set indentation output. indent = 0 do not indentation. indent > 0 do indentation. LIBXML_WRITER_ENABLED Set string indentation. LIBXML_WRITER_ENABLED Start an xml attribute. LIBXML_WRITER_ENABLED Start an xml attribute with namespace support. LIBXML_WRITER_ENABLED Start an xml CDATA section. LIBXML_WRITER_ENABLED Start an xml comment. LIBXML_WRITER_ENABLED Start an xml DTD. LIBXML_WRITER_ENABLED Start an xml DTD ATTLIST. LIBXML_WRITER_ENABLED Start an xml DTD element. LIBXML_WRITER_ENABLED Start an xml DTD ATTLIST. LIBXML_WRITER_ENABLED Start a new xml document LIBXML_WRITER_ENABLED Start an xml element. LIBXML_WRITER_ENABLED Start an xml element with namespace support. LIBXML_WRITER_ENABLED Start an xml PI. LIBXML_WRITER_ENABLED Write an xml attribute. LIBXML_WRITER_ENABLED Write an xml attribute. LIBXML_WRITER_ENABLED Write an base64 encoded xml text. LIBXML_WRITER_ENABLED Write a BinHex encoded xml text. LIBXML_WRITER_ENABLED Write an xml CDATA. LIBXML_WRITER_ENABLED Write an xml comment. LIBXML_WRITER_ENABLED Write a DTD. LIBXML_WRITER_ENABLED Write a DTD ATTLIST. LIBXML_WRITER_ENABLED Write a DTD element. LIBXML_WRITER_ENABLED Write a DTD entity. LIBXML_WRITER_ENABLED Write a DTD external entity. The entity must have been started with xmlTextWriterStartDTDEntity LIBXML_WRITER_ENABLED Write the contents of a DTD external entity. LIBXML_WRITER_ENABLED Write a DTD internal entity. LIBXML_WRITER_ENABLED Write a DTD entity. LIBXML_WRITER_ENABLED Write an xml element. LIBXML_WRITER_ENABLED Write an xml element with namespace support. LIBXML_WRITER_ENABLED Write a formatted xml attribute. LIBXML_WRITER_ENABLED Write a formatted xml attribute.with namespace support LIBXML_WRITER_ENABLED Write a formatted xml CDATA. LIBXML_WRITER_ENABLED Write an xml comment. LIBXML_WRITER_ENABLED Write a DTD with a formatted markup declarations part. LIBXML_WRITER_ENABLED Write a formatted DTD ATTLIST. LIBXML_WRITER_ENABLED Write a formatted DTD element. LIBXML_WRITER_ENABLED Write a formatted DTD internal entity. LIBXML_WRITER_ENABLED Write a formatted xml element. LIBXML_WRITER_ENABLED Write a formatted xml element with namespace support. LIBXML_WRITER_ENABLED Write a formatted PI. LIBXML_WRITER_ENABLED Write a formatted raw xml text. LIBXML_WRITER_ENABLED Write a formatted xml text. LIBXML_WRITER_ENABLED Write an xml PI. LIBXML_WRITER_ENABLED Write a raw xml text. LIBXML_WRITER_ENABLED Write an xml text. TODO: what about entities and special chars?? LIBXML_WRITER_ENABLED Write an xml text. LIBXML_WRITER_ENABLED Write a formatted xml attribute. LIBXML_WRITER_ENABLED Write a formatted xml attribute.with namespace support LIBXML_WRITER_ENABLED Write a formatted xml CDATA. LIBXML_WRITER_ENABLED Write an xml comment. LIBXML_WRITER_ENABLED Write a DTD with a formatted markup declarations part. LIBXML_WRITER_ENABLED Write a formatted DTD ATTLIST. LIBXML_WRITER_ENABLED Write a formatted DTD element. LIBXML_WRITER_ENABLED Write a formatted DTD internal entity. LIBXML_WRITER_ENABLED Write a formatted xml element. LIBXML_WRITER_ENABLED Write a formatted xml element with namespace support. LIBXML_WRITER_ENABLED Write a formatted xml PI. LIBXML_WRITER_ENABLED Write a formatted raw xml text. LIBXML_WRITER_ENABLED Write a formatted xml text. LIBXML_UNICODE_ENABLED Check whether the character is part of AegeanNumbers UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of AlphabeticPresentationForms UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Arabic UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of ArabicPresentationForms-A UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of ArabicPresentationForms-B UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Armenian UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Arrows UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of BasicLatin UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Bengali UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of the UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of BlockElements UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Bopomofo UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of BopomofoExtended UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of BoxDrawing UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of BraillePatterns UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Buhid UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of ByzantineMusicalSymbols UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CJKCompatibility UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CJKCompatibilityForms UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CJKCompatibilityIdeographs UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CJKCompatibilityIdeographsSupplement UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CJKRadicalsSupplement UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CJKSymbolsandPunctuation UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CJKUnifiedIdeographs UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CJKUnifiedIdeographsExtensionA UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CJKUnifiedIdeographsExtensionB UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of the UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of C UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Cc UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Cf UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Co UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Cs UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of L UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Ll UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Lm UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Lo UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Lt UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Lu UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of M UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Mc UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Me UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Mn UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of N UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Nd UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Nl UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of No UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of P UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Pc UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Pd UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Pe UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Pf UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Pi UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Po UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Ps UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of S UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Sc UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Sk UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Sm UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of So UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Z UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Zl UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Zp UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Zs UCS Category LIBXML_UNICODE_ENABLED Check whether the character is part of Cherokee UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CombiningDiacriticalMarks UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CombiningDiacriticalMarksforSymbols UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CombiningHalfMarks UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CombiningMarksforSymbols UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of ControlPictures UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CurrencySymbols UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CypriotSyllabary UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Cyrillic UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of CyrillicSupplement UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Deseret UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Devanagari UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Dingbats UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of EnclosedAlphanumerics UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of EnclosedCJKLettersandMonths UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Ethiopic UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of GeneralPunctuation UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of GeometricShapes UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Georgian UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Gothic UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Greek UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of GreekExtended UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of GreekandCoptic UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Gujarati UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Gurmukhi UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of HalfwidthandFullwidthForms UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of HangulCompatibilityJamo UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of HangulJamo UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of HangulSyllables UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Hanunoo UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Hebrew UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of HighPrivateUseSurrogates UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of HighSurrogates UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Hiragana UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of IPAExtensions UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of IdeographicDescriptionCharacters UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Kanbun UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of KangxiRadicals UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Kannada UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Katakana UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of KatakanaPhoneticExtensions UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Khmer UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of KhmerSymbols UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Lao UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Latin-1Supplement UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of LatinExtended-A UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of LatinExtendedAdditional UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of LatinExtended-B UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of LetterlikeSymbols UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Limbu UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of LinearBIdeograms UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of LinearBSyllabary UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of LowSurrogates UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Malayalam UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of MathematicalAlphanumericSymbols UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of MathematicalOperators UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of MiscellaneousMathematicalSymbols-A UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of MiscellaneousMathematicalSymbols-B UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of MiscellaneousSymbols UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of MiscellaneousSymbolsandArrows UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of MiscellaneousTechnical UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Mongolian UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of MusicalSymbols UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Myanmar UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of NumberForms UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Ogham UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of OldItalic UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of OpticalCharacterRecognition UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Oriya UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Osmanya UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of PhoneticExtensions UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of PrivateUse UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of PrivateUseArea UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Runic UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Shavian UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Sinhala UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of SmallFormVariants UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of SpacingModifierLetters UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Specials UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of SuperscriptsandSubscripts UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of SupplementalArrows-A UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of SupplementalArrows-B UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of SupplementalMathematicalOperators UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of SupplementaryPrivateUseArea-A UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of SupplementaryPrivateUseArea-B UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Syriac UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Tagalog UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Tagbanwa UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Tags UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of TaiLe UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of TaiXuanJingSymbols UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Tamil UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Telugu UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Thaana UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Thai UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Tibetan UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of Ugaritic UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of UnifiedCanadianAboriginalSyllabics UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of VariationSelectors UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of VariationSelectorsSupplement UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of YiRadicals UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of YiSyllables UCS Block LIBXML_UNICODE_ENABLED Check whether the character is part of YijingHexagramSymbols UCS Block Escaping routine, does not do validity checks ! It will try to escape the chars needing this, but this is heuristic based it's impossible to be sure. This routine escapes a string to hex, ignoring reserved characters (a-z) and the characters in the exception list. Unescaping routine, does not do validity checks ! Output is direct unsigned char translation of %XX values (no encoding) compares the two UCS4 values calculates the internal size of a UTF8 character compute the length of an UTF8 string, it doesn't do a full UTF8 checking of the content of the string. a function to provide the relative location of a UTF8 char a strndup for array of UTF8's a function to provide the equivalent of fetching a character from a string array storage size of an UTF8 string Create a substring from a given UTF-8 string Note: positions are given in units of UTF-8 chars Unlink a node from it's current context, the node is not freed xmlUnlockLibrary() is used to release a re-entrant lock on the libxml2 library. LIBXML_TREE_ENABLED Remove an attribute carried by a node. LIBXML_TREE_ENABLED Remove an attribute carried by a node. LIBXML_REGEXP_ENABLED (Re)Build the automata associated to the content model of this element LIBXML_VALID_ENABLED Does the validation related extra step of the normalization of attribute values: 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 single space (#x20) character. Also check VC: Standalone Document Declaration in P32, and update ctxt->valid accordingly Build/extend a list of potential children allowed by the content tree This function returns the list of authorized children to insert within an existing tree while respecting the validity constraints forced by the Dtd. The insertion point is defined using @prev and @next in the following ways: to insert before 'node': xmlValidGetValidElements(node->prev, node, ... to insert next 'node': xmlValidGetValidElements(node, node->next, ... to replace 'node': xmlValidGetValidElements(node->prev, node->next, ... to prepend a child to 'node': xmlValidGetValidElements(NULL, node->childs, to append a child to 'node': xmlValidGetValidElements(node->last, NULL, ... pointers to the element names are inserted at the beginning of the array and do not need to be freed. LIBXML_VALID_ENABLED Does the validation related extra step of the normalization of attribute values: 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 single space (#x20) character. LIBXML_VALID_ENABLED Try to validate a single attribute definition basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Default Legal ] - [ VC: Enumeration ] - [ VC: ID Attribute Default ] The ID/IDREF uniqueness and matching are done separately LIBXML_VALID_ENABLED Validate that the given attribute value match the proper production [ VC: ID ] Values of type ID must match the Name production.... [ VC: IDREF ] Values of type IDREF must match the Name production, and values of type IDREFS must match Names ... [ VC: Entity Name ] Values of type ENTITY must match the Name production, values of type ENTITIES must match Names ... [ VC: Name Token ] Values of type NMTOKEN must match the Nmtoken production; values of type NMTOKENS must match Nmtokens. LIBXML_VALID_ENABLED Try to validate the document instance basically it does the all the checks described by the XML Rec i.e. validates the internal and external subset (if present) and validate the document tree. LIBXML_VALID_ENABLED Does the final step for the document validation once all the incremental validation steps have been completed basically it does the following checks described by the XML Rec Check all the IDREF/IDREFS attributes definition for validity LIBXML_VALID_ENABLED Try to validate the document against the dtd instance basically it does check all the definitions in the DtD. LIBXML_VALID_ENABLED Does the final step for the dtds validation once all the subsets have been parsed basically it does the following checks described by the XML Rec - check that ENTITY and ENTITIES type attributes default or possible values matches one of the defined entities. - check that NOTATION type attributes default or possible values matches one of the defined notations. LIBXML_VALID_ENABLED Try to validate the subtree under an element LIBXML_VALID_ENABLED Try to validate a single element definition basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: One ID per Element Type ] - [ VC: No Duplicate Types ] - [ VC: Unique Element Type Declaration ] Check that a value conforms to the lexical space of NCName Check that a value conforms to the lexical space of NMToken Check that a value conforms to the lexical space of Name LIBXML_VALID_ENABLED Validate that the given value match Name production LIBXML_VALID_ENABLED Validate that the given value match Names production LIBXML_VALID_ENABLED Validate that the given value match Nmtoken production [ VC: Name Token ] LIBXML_VALID_ENABLED Validate that the given value match Nmtokens production [ VC: Name Token ] LIBXML_VALID_ENABLED Try to validate a single notation definition basically it does the following checks as described by the XML-1.0 recommendation: - it seems that no validity constraint exists on notation declarations But this function get called anyway ... LIBXML_VALID_ENABLED Validate that the given name match a notation declaration. - [ VC: Notation Declared ] LIBXML_VALID_ENABLED Try to validate a single attribute for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately LIBXML_VALID_ENABLED Try to validate a single element and it's attributes, basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Element Valid ] - [ VC: Required Attribute ] Then call xmlValidateOneAttribute() for each attribute present. The ID/IDREF checkings are done separately LIBXML_VALID_ENABLED Try to validate a single namespace declaration for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately LIBXML_REGEXP_ENABLED Pop the element end from the validation stack. LIBXML_REGEXP_ENABLED check the CData parsed for validation in the current stack LIBXML_REGEXP_ENABLED Push a new element start on the validation stack. Check that a value conforms to the lexical space of QName LIBXML_VALID_ENABLED Try to validate a the root element basically it does the following check as described by the XML-1.0 recommendation: - [ VC: Root Element Type ] it doesn't try to recurse or apply other check to the element Callback called when a validity error is found. This is a message oriented function similar to an *printf function. Callback called when a validity warning is found. This is a message oriented function similar to an *printf function. LIBXML_XINCLUDE_ENABLED Free an XInclude context LIBXML_XINCLUDE_ENABLED Creates a new XInclude context LIBXML_XINCLUDE_ENABLED Implement the XInclude substitution on the XML document @doc LIBXML_XINCLUDE_ENABLED Implement the XInclude substitution on the XML document @doc LIBXML_XINCLUDE_ENABLED Implement the XInclude substitution for the given subtree reusing the informations and data coming from the given context. LIBXML_XINCLUDE_ENABLED Implement the XInclude substitution for the given subtree LIBXML_XINCLUDE_ENABLED Implement the XInclude substitution for the given subtree LIBXML_XINCLUDE_ENABLED Set the flags used for further processing of XML resources. LIBXML_XPATH_ENABLED Implement the add operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function. LIBXML_XPATH_ENABLED An axis traversal function. To traverse an axis, the engine calls the first time with cur == NULL and repeat until the function returns NULL indicating the end of the axis traversal. LIBXML_XPATH_ENABLED Implement the boolean() XPath function boolean boolean(object) The boolean function converts its argument to a boolean as follows: - a number is true if and only if it is neither positive or negative zero nor NaN - a node-set is true if and only if it is non-empty - a string is true if and only if its length is non-zero LIBXML_XPATH_ENABLED Converts a boolean to its number value LIBXML_XPATH_ENABLED Converts a boolean to its string value. LIBXML_XPATH_ENABLED Converts a node-set to its boolean value LIBXML_XPATH_ENABLED Converts a node-set to its number value LIBXML_XPATH_ENABLED Converts a node-set to its string value. LIBXML_XPATH_ENABLED Converts a node to its number value LIBXML_XPATH_ENABLED Converts a node to its string value. LIBXML_XPATH_ENABLED Converts a number to its boolean value LIBXML_XPATH_ENABLED Converts a number to its string value. LIBXML_XPATH_ENABLED Converts a string to its boolean value LIBXML_XPATH_ENABLED Converts a string to its number value LIBXML_XPATH_ENABLED Converts an XPath object to its boolean value LIBXML_XPATH_ENABLED Converts an XPath object to its number value LIBXML_XPATH_ENABLED Converts an existing object to its string() equivalent LIBXML_XPATH_ENABLED Implement the ceiling() XPath function number ceiling(number) The ceiling function returns the smallest (closest to negative infinity) number that is not less than the argument and that is an integer. LIBXML_XPATH_ENABLED Compare two nodes w.r.t document order LIBXML_XPATH_ENABLED Implement the compare operation on XPath objects: @arg1 < @arg2 (1, 1, ... @arg1 <= @arg2 (1, 0, ... @arg1 > @arg2 (0, 1, ... @arg1 >= @arg2 (0, 0, ... When neither object to be compared is a node-set and the operator is <=, <, >=, >, then the objects are compared by converted both objects to numbers and comparing the numbers according to IEEE 754. The < comparison will be true if and only if the first number is less than the second number. The <= comparison will be true if and only if the first number is less than or equal to the second number. The > comparison will be true if and only if the first number is greater than the second number. The >= comparison will be true if and only if the first number is greater than or equal to the second number. LIBXML_XPATH_ENABLED Compile an XPath expression LIBXML_XPATH_ENABLED Evaluate the Precompiled XPath expression in the given context. LIBXML_XPATH_ENABLED Implement the concat() XPath function string concat(string, string, string*) The concat function returns the concatenation of its arguments. LIBXML_XPATH_ENABLED Implement the contains() XPath function boolean contains(string, string) The contains function returns true if the first argument string contains the second argument string, and otherwise returns false. LIBXML_XPATH_ENABLED Converts an existing object to its boolean() equivalent LIBXML_XPATH_ENABLED A conversion function is associated to a type and used to cast the new type to primitive values. LIBXML_XPATH_ENABLED Converts an existing object to its number() equivalent LIBXML_XPATH_ENABLED Converts an existing object to its string() equivalent LIBXML_XPATH_ENABLED Implement the count() XPath function number count(node-set) LIBXML_XPATH_ENABLED Compile an XPath expression LIBXML_XPATH_ENABLED LIBXML_DEBUG_ENABLED Dumps the tree of the compiled XPath expression. LIBXML_XPATH_ENABLED LIBXML_DEBUG_ENABLED Dump the content of the object for debugging purposes LIBXML_XPATH_ENABLED Implements the EXSLT - Sets difference() function: node-set set:difference (node-set, node-set) LIBXML_XPATH_ENABLED Implements the EXSLT - Sets distinct() function: node-set set:distinct (node-set) @nodes is sorted by document order, then #exslSetsDistinctSorted is called with the sorted node-set LIBXML_XPATH_ENABLED Implements the EXSLT - Sets distinct() function: node-set set:distinct (node-set) LIBXML_XPATH_ENABLED Implement the div operation on XPath objects @arg1 / @arg2: The numeric operators convert their operands to numbers as if by calling the number function. LIBXML_XPATH_ENABLED Implement the equal operation on XPath objects content: @arg1 == @arg2 LIBXML_XPATH_ENABLED Handle a Relax NG Parsing error LIBXML_XPATH_ENABLED Evaluate the XPath Location Path in the given context. LIBXML_XPATH_ENABLED Parse and evaluate an XPath expression in the given context, then push the result on the context stack LIBXML_XPATH_ENABLED Evaluate the XPath expression in the given context. LIBXML_XPATH_ENABLED An XPath evaluation function, the parameters are on the XPath context stack. LIBXML_XPATH_ENABLED Evaluate a predicate result for the current node. A PredicateExpr is evaluated by evaluating the Expr and converting the result to a boolean. If the result is a number, the result will be converted to true if the number is equal to the position of the context node in the context node list (as returned by the position function) and will be converted to false otherwise; if the result is not a number, then the result will be converted as if by a call to the boolean function. LIBXML_XPATH_ENABLED Evaluate a predicate result for the current node. A PredicateExpr is evaluated by evaluating the Expr and converting the result to a boolean. If the result is a number, the result will be converted to true if the number is equal to the position of the context node in the context node list (as returned by the position function) and will be converted to false otherwise; if the result is not a number, then the result will be converted as if by a call to the boolean function. LIBXML_XPATH_ENABLED Implement the false() XPath function boolean false() LIBXML_XPATH_ENABLED Implement the floor() XPath function number floor(number) The floor function returns the largest (closest to positive infinity) number that is not greater than the argument and that is an integer. LIBXML_XPATH_ENABLED Free up the memory allocated by @comp LIBXML_XPATH_ENABLED Free up an xmlXPathContext LIBXML_XPATH_ENABLED Free the NodeSet compound (not the actual nodes !). LIBXML_XPATH_ENABLED Free up the xmlXPathObjectPtr @obj but don't deallocate the objects in the list contrary to xmlXPathFreeObject(). LIBXML_XPATH_ENABLED Free up an xmlXPathObjectPtr object. LIBXML_XPATH_ENABLED Free up an xmlXPathParserContext LIBXML_XPATH_ENABLED Prototype for callbacks used to plug function lookup in the XPath engine. LIBXML_XPATH_ENABLED An XPath function. The arguments (if any) are popped out from the context stack and the result is pushed on the stack. LIBXML_XPATH_ENABLED Search in the Function array of the context for the given function. LIBXML_XPATH_ENABLED Search in the Function array of the context for the given function. LIBXML_XPATH_ENABLED Implements the EXSLT - Sets has-same-nodes function: boolean set:has-same-node(node-set, node-set) LIBXML_XPATH_ENABLED Implement the id() XPath function node-set id(object) The id function selects elements by their unique ID (see [5.2.1 Unique IDs]). When the argument to id is of type node-set, then the result is the union of the result of applying id to the string value of each of the nodes in the argument node-set. When the argument to id is of any other type, the argument is converted to a string as if by a call to the string function; the string is split into a whitespace-separated list of tokens (whitespace is any sequence of characters matching the production S); the result is a node-set containing the elements in the same document as the context node that have a unique ID equal to any of the tokens in the list. LIBXML_XPATH_ENABLED Initialize the XPath environment LIBXML_XPATH_ENABLED Implements the EXSLT - Sets intersection() function: node-set set:intersection (node-set, node-set) LIBXML_XPATH_ENABLED Provides a portable isinf() function to detect whether a double is a +Infinite or -Infinite. Based on trio code http://sourceforge.net/projects/ctrio/ LIBXML_XPATH_ENABLED Provides a portable isnan() function to detect whether a double is a NotaNumber. Based on trio code http://sourceforge.net/projects/ctrio/ LIBXML_XPATH_ENABLED Is the name given a NodeType one. [38] NodeType ::= 'comment' | 'text' | 'processing-instruction' | 'node' LIBXML_XPATH_ENABLED Implement the lang() XPath function boolean lang(string) The lang function returns true or false depending on whether the language of the context node as specified by xml:lang attributes is the same as or is a sublanguage of the language specified by the argument string. The language of the context node is determined by the value of the xml:lang attribute on the context node, or, if the context node has no xml:lang attribute, by the value of the xml:lang attribute on the nearest ancestor of the context node that has an xml:lang attribute. If there is no such attribute, then lang LIBXML_XPATH_ENABLED Implement the last() XPath function number last() The last function returns the number of nodes in the context node list. LIBXML_XPATH_ENABLED Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) @nodes1 and @nodes2 are sorted by document order, then #exslSetsLeadingSorted is called. LIBXML_XPATH_ENABLED Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) LIBXML_XPATH_ENABLED Implement the local-name() XPath function string local-name(node-set?) The local-name function returns a string containing the local part of the name of the node in the argument node-set that is first in document order. If the node-set is empty or the first node has no name, an empty string is returned. If the argument is omitted it defaults to the context node. LIBXML_XPATH_ENABLED Implement the mod operation on XPath objects: @arg1 / @arg2 The numeric operators convert their operands to numbers as if by calling the number function. LIBXML_XPATH_ENABLED Implement the multiply operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function. LIBXML_XPATH_ENABLED Implement the namespace-uri() XPath function string namespace-uri(node-set?) The namespace-uri function returns a string containing the namespace URI of the expanded name of the node in the argument node-set that is first in document order. If the node-set is empty, the first node has no name, or the expanded name has no namespace URI, an empty string is returned. If the argument is omitted it defaults to the context node. LIBXML_XPATH_ENABLED Create a new xmlXPathObjectPtr of type boolean and of value @val LIBXML_XPATH_ENABLED Create a new xmlXPathObjectPtr of type string and of value @val LIBXML_XPATH_ENABLED Create a new xmlXPathContext LIBXML_XPATH_ENABLED Create a new xmlXPathObjectPtr of type double and of value @val LIBXML_XPATH_ENABLED Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the single Node @val LIBXML_XPATH_ENABLED Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the Nodeset @val LIBXML_XPATH_ENABLED Create a new xmlXPathParserContext LIBXML_XPATH_ENABLED Create a new xmlXPathObjectPtr of type string and of value @val LIBXML_XPATH_ENABLED Create a new xmlXPathObjectPtr of type Value Tree (XSLT) and initialize it with the tree root @val LIBXML_XPATH_ENABLED Traversal function for the "ancestor" direction the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; the nodes are ordered in reverse document order; thus the parent is the first node on the axis, and the parent's parent is the second node on the axis LIBXML_XPATH_ENABLED Traversal function for the "ancestor-or-self" direction he ancestor-or-self axis contains the context node and ancestors of the context node in reverse document order; thus the context node is the first node on the axis, and the context node's parent the second; parent here is defined the same as with the parent axis. LIBXML_XPATH_ENABLED Traversal function for the "attribute" direction TODO: support DTD inherited default attributes LIBXML_XPATH_ENABLED Traversal function for the "child" direction The child axis contains the children of the context node in document order. LIBXML_XPATH_ENABLED Traversal function for the "descendant" direction the descendant axis contains the descendants of the context node in document order; a descendant is a child or a child of a child and so on. LIBXML_XPATH_ENABLED Traversal function for the "descendant-or-self" direction the descendant-or-self axis contains the context node and the descendants of the context node in document order; thus the context node is the first node on the axis, and the first child of the context node is the second node on the axis LIBXML_XPATH_ENABLED Traversal function for the "following" direction The following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes; the nodes are ordered in document order LIBXML_XPATH_ENABLED Traversal function for the "following-sibling" direction The following-sibling axis contains the following siblings of the context node in document order. LIBXML_XPATH_ENABLED Traversal function for the "namespace" direction the namespace axis contains the namespace nodes of the context node; the order of nodes on this axis is implementation-defined; the axis will be empty unless the context node is an element We keep the XML namespace node at the end of the list. LIBXML_XPATH_ENABLED Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one. LIBXML_XPATH_ENABLED Traversal function for the "preceding" direction the preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes and namespace nodes; the nodes are ordered in reverse document order LIBXML_XPATH_ENABLED Traversal function for the "preceding-sibling" direction The preceding-sibling axis contains the preceding siblings of the context node in reverse document order; the first preceding sibling is first on the axis; the sibling preceding that node is the second on the axis and so on. LIBXML_XPATH_ENABLED Traversal function for the "self" direction The self axis contains just the context node itself LIBXML_XPATH_ENABLED Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) @nodes is sorted by document order, then #exslSetsNodeLeadingSorted is called. LIBXML_XPATH_ENABLED Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) LIBXML_XPATH_ENABLED add a new xmlNodePtr to an existing NodeSet LIBXML_XPATH_ENABLED add a new namespace node to an existing NodeSet LIBXML_XPATH_ENABLED add a new xmlNodePtr to an existing NodeSet, optimized version when we are sure the node is not already in the set. LIBXML_XPATH_ENABLED checks whether @cur contains @val LIBXML_XPATH_ENABLED Create a new xmlNodeSetPtr of type double and of value @val LIBXML_XPATH_ENABLED Removes an xmlNodePtr from an existing NodeSet LIBXML_XPATH_ENABLED Namespace nodes in libxml don't match the XPath semantic. In a node set the namespace nodes are duplicated and the next pointer is set to the parent node in the XPath semantic. Check if such a node needs to be freed LIBXML_XPATH_ENABLED Merges two nodesets, all nodes from @val2 are added to @val1 if @val1 is NULL, a new set is created and copied from @val2 LIBXML_XPATH_ENABLED Removes an entry from an existing NodeSet list. LIBXML_XPATH_ENABLED Sort the node set in document order LIBXML_XPATH_ENABLED Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) @nodes is sorted by document order, then #xmlXPathNodeTrailingSorted is called. LIBXML_XPATH_ENABLED Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) LIBXML_XPATH_ENABLED Implement the normalize-space() XPath function string normalize-space(string?) The normalize-space function returns the argument string with white space normalized by stripping leading and trailing whitespace and replacing sequences of whitespace characters by a single space. Whitespace characters are the same allowed by the S production in XML. If the argument is omitted, it defaults to the context node converted to a string, in other words the value of the context node. LIBXML_XPATH_ENABLED Implement the equal operation on XPath objects content: @arg1 == @arg2 LIBXML_XPATH_ENABLED Implement the not() XPath function boolean not(boolean) The not function returns true if its argument is false, and false otherwise. LIBXML_XPATH_ENABLED Search in the namespace declaration array of the context for the given namespace name associated to the given prefix LIBXML_XPATH_ENABLED Implement the number() XPath function number number(object?) LIBXML_XPATH_ENABLED allocate a new copy of a given object LIBXML_XPATH_ENABLED Call this routine to speed up XPath computation on static documents. This stamps all the element nodes with the document order Like for line information, the order is kept in the element->content field, the value stored is actually - the node number (starting at -1) to be able to differentiate from line numbers. LIBXML_XPATH_ENABLED parse an XML namespace non qualified name. [NS 3] NCName ::= (Letter | '_') (NCNameChar)* [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender LIBXML_XPATH_ENABLED parse an XML name [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* LIBXML_XPATH_ENABLED Pops a boolean from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. LIBXML_XPATH_ENABLED Pops an external object from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. LIBXML_XPATH_ENABLED Pops a node-set from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. LIBXML_XPATH_ENABLED Pops a number from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. LIBXML_XPATH_ENABLED Pops a string from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. LIBXML_XPATH_ENABLED Implement the position() XPath function number position() The position function returns the position of the context node in the context node list. The first position is 1, and so the last position will be equal to last(). LIBXML_XPATH_ENABLED Registers all default XPath functions in this context LIBXML_XPATH_ENABLED Register a new function. If @f is NULL it unregisters the function LIBXML_XPATH_ENABLED Registers an external mechanism to do function lookup. LIBXML_XPATH_ENABLED Register a new function. If @f is NULL it unregisters the function LIBXML_XPATH_ENABLED Register a new namespace. If @ns_uri is NULL it unregisters the namespace LIBXML_XPATH_ENABLED Register a new variable value. If @value is NULL it unregisters the variable LIBXML_XPATH_ENABLED register an external mechanism to do variable lookup LIBXML_XPATH_ENABLED Register a new variable value. If @value is NULL it unregisters the variable LIBXML_XPATH_ENABLED Cleanup the XPath context data associated to registered functions LIBXML_XPATH_ENABLED Cleanup the XPath context data associated to registered variables LIBXML_XPATH_ENABLED Cleanup the XPath context data associated to registered variables LIBXML_XPATH_ENABLED Initialize the context to the root of the document LIBXML_XPATH_ENABLED Implement the round() XPath function number round(number) The round function returns the number that is closest to the argument and that is an integer. If there are two such numbers, then the one that is even is returned. LIBXML_XPATH_ENABLED Implement the starts-with() XPath function boolean starts-with(string, string) The starts-with function returns true if the first argument string starts with the second argument string, and otherwise returns false. LIBXML_XPATH_ENABLED [30a] Float ::= Number ('e' Digits?)? [30] Number ::= Digits ('.' Digits?)? | '.' Digits [31] Digits ::= [0-9]+ Compile a Number in the string In complement of the Number expression, this function also handles negative values : '-' Number. LIBXML_XPATH_ENABLED Implement the string() XPath function string string(object?) The string function converts an object to a string as follows: - A node-set is converted to a string by returning the value of the node in the node-set that is first in document order. If the node-set is empty, an empty string is returned. - A number is converted to a string as follows + NaN is converted to the string NaN + positive zero is converted to the string 0 + negative zero is converted to the string 0 + positive infinity is converted to the string Infinity + negative infinity is converted to the string -Infinity + if the number is an integer, the number is represented in decimal form as a Number with no decimal point and no leading zeros, preceded by a minus sign (-) if the number is negative + otherwise, the number is represented in decimal form as a Number including a decimal point with at least one digit before the decimal point and at least one digit after the decimal point, preceded by a minus sign (-) if the number is negative; there must be no leading zeros before the decimal point apart possibly from the one required digit immediately before the decimal point; beyond the one required digit after the decimal point there must be as many, but only as many, more digits as are needed to uniquely distinguish the number from all other IEEE 754 numeric values. - The boolean false value is converted to the string false. The boolean true value is converted to the string true. If the argument is omitted, it defaults to a node-set with the context node as its only member. LIBXML_XPATH_ENABLED Implement the string-length() XPath function number string-length(string?) The string-length returns the number of characters in the string (see [3.6 Strings]). If the argument is omitted, it defaults to the context node converted to a string, in other words the value of the context node. LIBXML_XPATH_ENABLED Implement the subtraction operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function. LIBXML_XPATH_ENABLED Implement the substring-after() XPath function string substring-after(string, string) The substring-after function returns the substring of the first argument string that follows the first occurrence of the second argument string in the first argument string, or the empty stringi if the first argument string does not contain the second argument string. For example, substring-after("1999/04/01","/") returns 04/01, and substring-after("1999/04/01","19") returns 99/04/01. LIBXML_XPATH_ENABLED Implement the substring-before() XPath function string substring-before(string, string) The substring-before function returns the substring of the first argument string that precedes the first occurrence of the second argument string in the first argument string, or the empty string if the first argument string does not contain the second argument string. For example, substring-before("1999/04/01","/") returns 1999. LIBXML_XPATH_ENABLED Implement the substring() XPath function string substring(string, number, number?) The substring function returns the substring of the first argument starting at the position specified in the second argument with length specified in the third argument. For example, substring("12345",2,3) returns "234". If the third argument is not specified, it returns the substring starting at the position specified in the second argument and continuing to the end of the string. For example, substring("12345",2) returns "2345". More precisely, each character in the string (see [3.6 Strings]) is considered to have a numeric position: the position of the first character is 1, the position of the second character is 2 and so on. The returned substring contains those characters for which the position of the character is greater than or equal to the second argument and, if the third argument is specified, less than the sum of the second and third arguments; the comparisons and addition used for the above follow the standard IEEE 754 rules. Thus: - substring("12345", 1.5, 2.6) returns "234" - substring("12345", 0, 3) returns "12" - substring("12345", 0 div 0, 3) returns "" - substring("12345", 1, 0 div 0) returns "" - substring("12345", -42, 1 div 0) returns "12345" - substring("12345", -1 div 0, 1 div 0) returns "" LIBXML_XPATH_ENABLED Implement the sum() XPath function number sum(node-set) The sum function returns the sum of the values of the nodes in the argument node-set. LIBXML_XPATH_ENABLED Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) @nodes1 and @nodes2 are sorted by document order, then #xmlXPathTrailingSorted is called. LIBXML_XPATH_ENABLED Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) LIBXML_XPATH_ENABLED Implement the translate() XPath function string translate(string, string, string) The translate function returns the first argument string with occurrences of characters in the second argument string replaced by the character at the corresponding position in the third argument string. For example, translate("bar","abc","ABC") returns the string BAr. If there is a character in the second argument string with no character at a corresponding position in the third argument string (because the second argument string is longer than the third argument string), then occurrences of that character in the first argument string are removed. For example, translate("--aaa--","abc-","ABC") LIBXML_XPATH_ENABLED Implement the true() XPath function boolean true() LIBXML_XPATH_ENABLED Implement the unary - operation on an XPath object The numeric operators convert their operands to numbers as if by calling the number function. LIBXML_XPATH_ENABLED Search in the Variable array of the context for the given variable value. LIBXML_XPATH_ENABLED Prototype for callbacks used to plug variable lookup in the XPath engine. LIBXML_XPATH_ENABLED Search in the Variable array of the context for the given variable value. LIBXML_XPATH_ENABLED Wraps a string into an XPath object. LIBXML_XPATH_ENABLED Wraps the @val data into an XPath object. LIBXML_XPATH_ENABLED Wrap the Nodeset @val in a new xmlXPathObjectPtr LIBXML_XPATH_ENABLED Wraps the @val string into an XPath object. LIBXML_XPATH_ENABLED Formats an error message. LIBXML_XPTR_ENABLED Build a node list tree copy of the XPointer result. This will drop Attributes and Namespace declarations. LIBXML_XPTR_ENABLED Evaluate the XPath Location Path in the given context. LIBXML_XPTR_ENABLED [8] Predicate ::= '[' PredicateExpr ']' [9] PredicateExpr ::= Expr Evaluate a predicate as in xmlXPathEvalPredicate() but for a Location Set instead of a node set LIBXML_XPTR_ENABLED Free the LocationSet compound (not the actual ranges !). LIBXML_XPTR_ENABLED add a new xmlXPathObjectPtr to an existing LocationSet If the location already exist in the set @val is freed. LIBXML_XPTR_ENABLED Create a new xmlLocationSetPtr of type double and of value @val LIBXML_XPTR_ENABLED Removes an xmlXPathObjectPtr from an existing LocationSet LIBXML_XPTR_ENABLED Merges two rangesets, all ranges from @val2 are added to @val1 LIBXML_XPTR_ENABLED Removes an entry from an existing LocationSet list. LIBXML_XPTR_ENABLED Create a new xmlXPathObjectPtr of type range using a single nodes LIBXML_XPTR_ENABLED Create a new XPointer context LIBXML_XPTR_ENABLED Create a new xmlXPathObjectPtr of type LocationSet and initialize it with all the nodes from @set LIBXML_XPTR_ENABLED Create a new xmlXPathObjectPtr of type LocationSet and initialize it with the single range made of the two nodes @start and @end LIBXML_XPTR_ENABLED Create a new xmlXPathObjectPtr of type range LIBXML_XPTR_ENABLED Create a new xmlXPathObjectPtr of type range from a not to an object LIBXML_XPTR_ENABLED Create a new xmlXPathObjectPtr of type range from a node to a point LIBXML_XPTR_ENABLED Create a new xmlXPathObjectPtr of type range using 2 nodes LIBXML_XPTR_ENABLED Create a new xmlXPathObjectPtr of type range from a point to a node LIBXML_XPTR_ENABLED Create a new xmlXPathObjectPtr of type range using 2 Points LIBXML_XPTR_ENABLED Implement the range-to() XPointer function LIBXML_XPTR_ENABLED Wrap the LocationSet @val in a new xmlXPathObjectPtr