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 dictionary 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 Deprecated, don't use Chained hash tables This module implements the hash table support used in various places in the library. 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. This module is DEPRECATED, do not use any of its functions. 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 and limits 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 The Schemas development is a Work In Progress. Some of those interfaces are not guaranteed to be API or ABI stable ! Daniel Veillard XML Schematron implementation interface to the XML Schematron 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. interface for the memory allocator provides interfaces for the memory allocator, including debugging capabilities. Daniel Veillard dynamic module loading basic API for dynamic module loading, used by libexslt added in 2.6.17 Joel W. Reed 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 information compile-time version information 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 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 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 used to provide portability of code to windows sockets the value to be used when the socket is not valid Macro to check [0-9] Macro to check [a-zA-Z] 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 Macro used to express that the API use the new buffers for xmlParserInputBuffer and xmlOutputBuffer. The change was introduced in 2.9.0. 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 Removed the version string like "1.2.3" Whether the formal expressions interfaces are compiled in This code is unused and disabled unconditionally for now. 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 icu 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 Lzma support is compiled in Whether the module interfaces are compiled in the string suffix used by dynamic modules (usually shared libraries) 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 Whether the Schematron 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 allocation hooks are per-thread 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 10203 extra version information, used to show a git commit description the version number string, 1.2.3 value is "10203" Whether the xmlWriter saving interface is configured in Whether XInclude is configured in Whether XPath is configured in Whether XPointer is configured in Whether support for XPointer locations is configured in Whether the Zlib support is compiled in macro used to provide portability of code to windows sockets 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" Macro which declares an exportable function Macro which declares an exportable variable Macro to do a casting from an object pointer to a function pointer without encountering a warning from gcc #define XML_CAST_FPTR(fptr) (*(void **)(&fptr)) This macro violated ISO C aliasing rules (gcc4 on s390 broke) so it is disabled now The namespace for the XML Catalogs elements. The specific XML Catalog Processing Instruction 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. Maximum size allowed by the parser for a dictionary by default This is not a limitation of the parser but a safety boundary feature, use XML_PARSE_HUGE option to override it. Introduced in 2.9.0 Maximum size allowed when XML_PARSE_HUGE is set. Maximum size allowed by the parser for ahead lookup This is an upper boundary enforced by the parser to avoid bad behaviour on "unfriendly' content Introduced in 2.9.0 Identifiers can be longer, but this will be more costly at runtime. Maximum size allowed for a markup identifier. This is not a limitation of the parser but a safety boundary feature, use XML_PARSE_HUGE option to override it. Note that with the use of parsing dictionaries overriding the limit may result in more runtime memory usage in face of "unfriendly' content Introduced in 2.9.0 Maximum size allowed for a single text node when building a tree. This is not a limitation of the parser but a safety boundary feature, use XML_PARSE_HUGE option to override it. Introduced in 2.9.0 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 group has been defined. Whether this attr. group contains attr. group references. Marks the attr group as marked; used for circular checks. The attr group was redefined. The attribute wildcard has been built. the attribute has a fixed value allow elements in no namespace this is set when the "type" and "ref" references have been resolved. 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: "substitution" a helper flag for the search of circular references. the element has a default value substitution group exclusions are absent substitution group exclusions: "extension" substitution group exclusions: "restriction" the element has a fixed value the element is global this is set when the elem decl has been checked against all constraints this is set when "type", "ref", "substitutionGroup" references have been resolved. the element is nillable allow elements in no namespace Obsolete, not used anymore. the element is a reference to a type the declaration is a substitution group head 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 schema 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. Reflects attributeFormDefault == qualified in an XML schema document. Reflects elementFormDefault == qualified in an XML schema document. the simple/complexType is abstract. the complexType did not specify 'block' so use the default of the <schema> item. the complexType has a 'block' of "extension". the complexType has a 'block' of "restriction". Marks the item as a builtin primitive. the simple or complex type has a derivation method of "extension". the simple or complex type has a derivation method of "restriction". indicates if the facets need a computed value the simpleType has a final of "default". 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". First stage of fixup was done. the type is global has facets indicates that the type is invalid indicates that the type was typefixed Marks the item as marked; used for circular checks. the element content type is mixed indicates if the facets (pattern) need a normalized value the complexType owns an attribute wildcard, i.e. it can be freed by the complexType The type was redefined. the simpleType has a variety of "absent". TODO: Actually not necessary :-/, since if none of the variety flags occur then it's automatically absent. the simpleType has a variety of "union". the simpleType has a variety of "list". the simpleType has a variety of "union". a whitespace-facet value of "collapse" a whitespace-facet value of "preserve" a whitespace-facet value of "replace" 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. check namespaces at compilation forbid variables in expression 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. A libxml automata description, It can be compiled into a regexp A state int the automata description, A pointer to a buffer structure, the actual structure internals are not public This is a basic byte in an UTF-8 encoded string. It's unsigned allowing to pinpoint case where char * are assigned to xmlChar * (possibly making serialization back impossible). A handle to a dynamically loaded module A libxml progressive regular expression evaluation context A libxml regular expression, they can actually be far more complex thank the POSIX regex expressions. Pointer to an xmlReader context. @mem: an already allocated block of memory The variable holding the libxml free() implementation @size: the size requested in bytes The variable holding the libxml malloc() implementation Returns a pointer to the newly allocated block or NULL in case of error @size: the size requested in bytes The variable holding the libxml malloc() implementation for atomic data (i.e. blocks not containing pointers), useful when using a garbage collecting allocator. Returns a pointer to the newly allocated block or NULL in case of error @str: a zero terminated string The variable holding the libxml strdup() implementation Returns the copy of the string or NULL in case of error arbitrary depth limit for the XML documents that we allow to process. This is not a limitation of the parser but a safety boundary feature. It can be disabled with the XML_PARSE_HUGE parser option. Constant string describing the internal version of the library @mem: an already allocated block of memory @size: the new size requested in bytes The variable holding the libxml realloc() implementation Returns a pointer to the newly reallocated block or NULL in case of error defined(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. defined(LIBXML_OUTPUT_ENABLED) Take a block of UTF-8 chars in and try to convert it to an ISO Latin 1 block of chars out. defined(LIBXML_LEGACY_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() defined(LIBXML_LEGACY_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. defined(LIBXML_LEGACY_ENABLED) called when a pcdata block has been parsed DEPRECATED: use xmlSAX2CDataBlock() Called when a pcdata block has been parsed. defined(LIBXML_LEGACY_ENABLED) receiving some chars from the parser. DEPRECATED: use xmlSAX2Characters() Receiving some chars from the parser. defined(LIBXML_LEGACY_ENABLED) Check that the current element namespace is the same as the one read upon parsing. DEPRECATED defined(LIBXML_LEGACY_ENABLED) A comment has been parsed. DEPRECATED: use xmlSAX2Comment() A comment has been parsed. defined(LIBXML_LEGACY_ENABLED) An element definition has been parsed DEPRECATED: use xmlSAX2ElementDecl() An element definition has been parsed. defined(LIBXML_LEGACY_ENABLED) called when the document end has been detected. DEPRECATED: use xmlSAX2EndDocument() Called when the document end has been detected. defined(LIBXML_LEGACY_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 information for the element. Called when the end of an element has been detected. defined(LIBXML_LEGACY_ENABLED) An entity definition has been parsed DEPRECATED: use xmlSAX2EntityDecl() An entity definition has been parsed. Display and format an error messages, callback. defined(LIBXML_LEGACY_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. defined(LIBXML_FTP_ENABLED) A callback for the xmlNanoFTPGet command. defined(LIBXML_FTP_ENABLED) A callback for the xmlNanoFTPList command. Note that only one of year and day:minute are specified. defined(LIBXML_LEGACY_ENABLED) Provide the column number of the current parsing point. DEPRECATED: use xmlSAX2GetColumnNumber() defined(LIBXML_LEGACY_ENABLED) Get an entity by name DEPRECATED: use xmlSAX2GetEntity() Get an entity by name. defined(LIBXML_LEGACY_ENABLED) Provide the line number of the current parsing point. DEPRECATED: use xmlSAX2GetLineNumber() defined(LIBXML_LEGACY_ENABLED) Get the current element namespace. DEPRECATED defined(LIBXML_LEGACY_ENABLED) Get a parameter entity by name DEPRECATED: use xmlSAX2GetParameterEntity() Get a parameter entity by name. defined(LIBXML_LEGACY_ENABLED) Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN" DEPRECATED: use xmlSAX2GetPublicId() defined(LIBXML_LEGACY_ENABLED) Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd DEPRECATED: use xmlSAX2GetSystemId() defined(LIBXML_LEGACY_ENABLED) An old global namespace has been parsed. DEPRECATED defined(LIBXML_LEGACY_ENABLED) Does this document has an external subset DEPRECATED: use xmlSAX2HasExternalSubset() Does this document has an external subset? defined(LIBXML_LEGACY_ENABLED) Does this document has an internal subset DEPRECATED: use xmlSAX2HasInternalSubset() Does this document has an internal subset. defined(LIBXML_HTML_ENABLED) Checks whether an attribute is valid for an element Has full knowledge of Required and Deprecated attributes defined(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. defined(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. defined(LIBXML_HTML_ENABLED) Create a parser context for an HTML in-memory document. defined(LIBXML_HTML_ENABLED) && defined(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. defined(LIBXML_HTML_ENABLED) parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context defined(LIBXML_HTML_ENABLED) parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context defined(LIBXML_HTML_ENABLED) parse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context defined(LIBXML_HTML_ENABLED) parse an HTML document from I/O functions and source and build a tree. This reuses the existing @ctxt parser context defined(LIBXML_HTML_ENABLED) parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context defined(LIBXML_HTML_ENABLED) Reset a parser context defined(LIBXML_HTML_ENABLED) Applies the options to the parser context defined(LIBXML_HTML_ENABLED) DEPRECATED: This function is a no-op. Call xmlInitParser to initialize the library. defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump an HTML document. defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump an HTML document. Formatting return/spaces are added. defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump an HTML document to an open FILE. defined(LIBXML_HTML_ENABLED) && defined(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. defined(LIBXML_HTML_ENABLED) && defined(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. defined(LIBXML_HTML_ENABLED) Checks whether an HTML element may be a direct child of a parent element. Note - doesn't check for deprecated elements defined(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. defined(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. defined(LIBXML_HTML_ENABLED) Lookup the given entity in EntitiesTable TODO: the linear scan is really ugly, an hash table is really needed. defined(LIBXML_HTML_ENABLED) Lookup the given entity in EntitiesTable TODO: the linear scan is really ugly, an hash table is really needed. defined(LIBXML_HTML_ENABLED) Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed. defined(LIBXML_HTML_ENABLED) Encoding definition lookup in the Meta tags defined(LIBXML_HTML_ENABLED) Set and return the previous value for handling HTML omitted tags. defined(LIBXML_HTML_ENABLED) DEPRECATED: This is a no-op. defined(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 defined(LIBXML_HTML_ENABLED) Determine if a given attribute is a boolean attribute. defined(LIBXML_HTML_ENABLED) Check if an attribute is of content type Script defined(LIBXML_HTML_ENABLED) Creates a new HTML document defined(LIBXML_HTML_ENABLED) Creates a new HTML document without a DTD node if @URI and @ExternalID are NULL defined(LIBXML_HTML_ENABLED) Allocate and initialize a new parser context. defined(LIBXML_HTML_ENABLED) Allocate and initialize a new SAX parser context. If userData is NULL, the parser context will be passed as user data. defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added. defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added. defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump an HTML node, recursive behaviour,children are printed too. TODO: if encoding == NULL try to save in the doc encoding defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump an HTML node, recursive behaviour,children are printed too. defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added. defined(LIBXML_HTML_ENABLED) Checks whether the tree node is valid. Experimental (the author only uses the HTML enhancements in a SAX parser) defined(LIBXML_HTML_ENABLED) DEPRECATED: Internal function, don't use. parse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED) Parse a Chunk of memory defined(LIBXML_HTML_ENABLED) parse an HTML in-memory document and build a tree. defined(LIBXML_HTML_ENABLED) parse an HTML document (and build a tree if using the standard SAX interface). defined(LIBXML_HTML_ENABLED) DEPRECATED: Internal function, don't use. parse an HTML element, this is highly recursive this is kept for compatibility with previous code versions [39] element ::= EmptyElemTag | STag content ETag [41] Attribute ::= Name Eq AttValue defined(LIBXML_HTML_ENABLED) DEPRECATED: Internal function, don't use. parse an HTML ENTITY references [68] EntityRef ::= '&' Name ';' defined(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. defined(LIBXML_HTML_ENABLED) parse an XML in-memory document and build a tree. defined(LIBXML_HTML_ENABLED) parse an HTML from a file descriptor and build a tree. NOTE that the file descriptor will not be closed when the reader is closed or reset. defined(LIBXML_HTML_ENABLED) parse an XML file from the filesystem or the network. defined(LIBXML_HTML_ENABLED) parse an HTML document from I/O functions and source and build a tree. defined(LIBXML_HTML_ENABLED) parse an XML in-memory document and build a tree. defined(LIBXML_HTML_ENABLED) DEPRECATED: Use htmlNewSAXParserCtxt and htmlCtxtReadDoc. 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. defined(LIBXML_HTML_ENABLED) DEPRECATED: Use htmlNewSAXParserCtxt and htmlCtxtReadFile. 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. defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump an HTML document to a file. If @filename is "-" the stdout file is used. defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump an HTML document to a file using a given encoding and formatting returns/spaces are added. defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump an HTML document to a file using a given encoding. defined(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. defined(LIBXML_HTML_ENABLED) Lookup the HTML tag in the ElementTable defined(LIBXML_LEGACY_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. DEPRECATED: Use xmlSetGenericErrorFunc. Set or reset (if NULL) the default handler for generic errors to the builtin error function. defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED) && defined(LIBXML_HTML_ENABLED) Initialize the default HTML SAX version 1 handler DEPRECATED: use xmlSAX2InitHtmlDefaultSAXHandler() for the new SAX2 blocks defined(LIBXML_LEGACY_ENABLED) && defined(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 defined(LIBXML_LEGACY_ENABLED) Callback on internal subset declaration. DEPRECATED: use xmlSAX2InternalSubset() Callback on internal subset declaration. defined(LIBXML_LEGACY_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. DEPRECATED: Internal function, do not use. Pops the top element name from the name stack DEPRECATED: Internal function, do not use. Pushes a new element name on top of the name stack defined(LIBXML_LEGACY_ENABLED) A namespace has been parsed. DEPRECATED DEPRECATED: Internal function, do not use. Pops the top element node from the node stack DEPRECATED: Internal function, do not use. Pushes a new element node on top of the node stack defined(LIBXML_LEGACY_ENABLED) What to do when a notation declaration has been parsed. DEPRECATED: use xmlSAX2NotationDecl() What to do when a notation declaration has been parsed. defined(LIBXML_LEGACY_ENABLED) A processing instruction has been parsed. DEPRECATED: use xmlSAX2ProcessingInstruction() A processing instruction has been parsed. defined(LIBXML_LEGACY_ENABLED) called when an entity reference is detected. DEPRECATED: use xmlSAX2Reference() Called when an entity reference is detected. defined(LIBXML_LEGACY_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 defined(LIBXML_LEGACY_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. defined(LIBXML_LEGACY_ENABLED) Set the current element namespace. DEPRECATED defined(LIBXML_LEGACY_ENABLED) called when the document start being processed. DEPRECATED: use xmlSAX2StartDocument() Called when the document start being processed. defined(LIBXML_LEGACY_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 information for the element, as well as the new namespace declarations on the element. Called when an opening tag has been processed. defined(LIBXML_LEGACY_ENABLED) What to do when an unparsed entity declaration is parsed DEPRECATED: use xmlSAX2UnparsedEntityDecl() What to do when an unparsed entity declaration is parsed. defined(LIBXML_XPATH_ENABLED) Pops the top XPath object from the value stack defined(LIBXML_XPATH_ENABLED) Pushes a new XPath object on top of the value stack. If value is NULL, a memory error is recorded in the parser context. Display and format a warning messages, callback. defined(LIBXML_XPTR_ENABLED) This is the prototype for a extended link detection callback. defined(LIBXML_XPTR_ENABLED) This is the prototype for a extended link set detection callback. defined(LIBXML_XPTR_ENABLED) Get the default xlink detection routine defined(LIBXML_XPTR_ENABLED) Get the default xlink handler. defined(LIBXML_XPTR_ENABLED) 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. defined(LIBXML_XPTR_ENABLED) This is the prototype for the link detection routine. It calls the default link detection callbacks upon link detection. defined(LIBXML_XPTR_ENABLED) Set the default xlink detection routine defined(LIBXML_XPTR_ENABLED) Set the default xlink handlers defined(LIBXML_XPTR_ENABLED) This is the prototype for a simple link detection callback. defined(LIBXML_CATALOG_ENABLED) Add an entry in the catalog, it may overwrite existing but different entries. defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump the given catalog to the given file. defined(LIBXML_CATALOG_ENABLED) Remove an entry from the catalog defined(LIBXML_CATALOG_ENABLED) Do a complete resolution lookup of an External Identifier defined(LIBXML_CATALOG_ENABLED) Try to lookup the catalog local reference associated to a public ID in that catalog defined(LIBXML_CATALOG_ENABLED) Try to lookup the catalog resource for a system ID defined(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. All tree manipulation functions can safely move nodes within a document. But when moving nodes from one document to another, references to namespaces in element or attribute nodes are NOT fixed. In this case, you MUST call xmlReconciliateNs after the move operation to avoid memory errors. Add a list of node at the end of the child list of the parent merging adjacent TEXT nodes (@cur may be freed) See the note regarding namespaces in xmlAddChild. 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. See the note regarding namespaces in xmlAddChild. Register a new notation declaration defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_XINCLUDE_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. See the note regarding namespaces in xmlAddChild. DEPRECATED, do not use. This function will be removed from the public API. 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. See the note regarding namespaces in xmlAddChild. defined(LIBXML_OUTPUT_ENABLED) Create a buffered parser output Create a buffered parser input for progressive parsing defined(LIBXML_OUTPUT_ENABLED) Serialize text attribute values to an xml simple buffer defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) Compile the automata into a Reg Exp ready for being executed. The automata should be free after this point. defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) Initial state lookup defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) Checks if an automata is determinist. defined(LIBXML_REGEXP_ENABLED) && defined(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. defined(LIBXML_REGEXP_ENABLED) && defined(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 defined(LIBXML_REGEXP_ENABLED) && defined(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 @token2 and whose number is between @min and @max defined(LIBXML_REGEXP_ENABLED) && defined(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 defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) Create a new counter defined(LIBXML_REGEXP_ENABLED) && defined(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. defined(LIBXML_REGEXP_ENABLED) && defined(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 defined(LIBXML_REGEXP_ENABLED) && defined(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 any value except (@token,@token2) Note that if @token2 is not NULL, then (X, NULL) won't match to follow # the semantic of XSD ##other defined(LIBXML_REGEXP_ENABLED) && defined(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. defined(LIBXML_REGEXP_ENABLED) && defined(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 @token2 and whose number is between @min and @max, moreover that transition can only be crossed once. defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) Create a new disconnected state in the automata defined(LIBXML_REGEXP_ENABLED) && defined(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 defined(LIBXML_REGEXP_ENABLED) && defined(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 defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) Makes that state a final state defined(LIBXML_DEBUG_ENABLED) Convenient way to turn bool into text Function to extract the content of a buffer Function to extract the end of the content of a buffer 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 @buf with this value defined(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 Remove the beginning of an XML buffer. NOTE that this routine behaviour differs from xmlBufferShrink() as it will return 0 on error instead of -1 due to size_t being used as the return type. Function to get the length of a buffer 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. Remove the string contained in a buffer and gie it back to the caller. The buffer is reset to an empty content. This doesn't work with immutable buffers as they can't be reset. 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 weird 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. defined(LIBXML_C14N_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) defined(LIBXML_C14N_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) defined(LIBXML_C14N_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) defined(LIBXML_C14N_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) defined(LIBXML_C14N_ENABLED) Signature for a C14N callback on visible nodes Constructs a canonic path from the specified path. defined(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(); defined(LIBXML_CATALOG_ENABLED) Add the new entry to the catalog list defined(LIBXML_CATALOG_ENABLED) Free up all the memory associated with catalogs defined(LIBXML_CATALOG_ENABLED) Convert all the SGML catalog entries as XML ones defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump all the global catalog content to the given file. defined(LIBXML_CATALOG_ENABLED) Free up the memory associated to the catalog list defined(LIBXML_CATALOG_ENABLED) Used to get the user preference w.r.t. to what catalogs should be accepted defined(LIBXML_CATALOG_ENABLED) Try to lookup the catalog reference associated to a public ID DEPRECATED, use xmlCatalogResolvePublic() defined(LIBXML_CATALOG_ENABLED) Try to lookup the catalog reference associated to a system ID DEPRECATED, use xmlCatalogResolveSystem() defined(LIBXML_CATALOG_ENABLED) Check is a catalog is empty defined(LIBXML_CATALOG_ENABLED) Do a complete resolution lookup of an External Identifier using a document's private catalog list defined(LIBXML_CATALOG_ENABLED) Do a complete resolution lookup of an URI using a document's private catalog list defined(LIBXML_CATALOG_ENABLED) Remove an entry from the catalog defined(LIBXML_CATALOG_ENABLED) Do a complete resolution lookup of an External Identifier defined(LIBXML_CATALOG_ENABLED) Try to lookup the catalog reference associated to a public ID defined(LIBXML_CATALOG_ENABLED) Try to lookup the catalog resource for a system ID defined(LIBXML_CATALOG_ENABLED) Do a complete resolution lookup of an URI defined(LIBXML_CATALOG_ENABLED) Used to set the debug level for catalog operation, 0 disable debugging, 1 enable it defined(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 defined(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 DEPERECATED: Don't use. 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 DEPRECATED: Internal function, do not use. 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])+ The current REC reference the successors of RFC 1766, currently 5646 http://www.rfc-editor.org/rfc/rfc5646.txt langtag = language ["-" script] ["-" region] *("-" variant) *("-" extension) ["-" privateuse] language = 2*3ALPHA ; shortest ISO 639 code ["-" extlang] ; sometimes followed by ; extended language subtags / 4ALPHA ; or reserved for future use / 5*8ALPHA ; or registered language subtag extlang = 3ALPHA ; selected ISO 639 codes *2("-" 3ALPHA) ; permanently reserved script = 4ALPHA ; ISO 15924 code region = 2ALPHA ; ISO 3166-1 code / 3DIGIT ; UN M.49 code variant = 5*8alphanum ; registered variants / (DIGIT 3alphanum) extension = singleton 1*("-" (2*8alphanum)) ; Single alphanumerics ; "x" reserved for private use singleton = DIGIT ; 0 - 9 / %x41-57 ; A - W / %x59-5A ; Y - Z / %x61-77 ; a - w / %x79-7A ; y - z it sounds right to still allow Irregular i-xxx IANA and user codes too The parser below doesn't try to cope with extension or privateuse that could be added but that's not interoperable anyway Check whether thread-local storage could be allocated. In cross-platform code running in multithreaded environments, this function should be called once in each thread before calling other library functions to make sure that thread-local storage was allocated properly. 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 defined(LIBXML_TREE_ENABLED) Finds the current number of child nodes of that element which are element nodes. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. DEPRECATED: This function will be made private. Call xmlCleanupParser to free global state but see the warnings there. xmlCleanupParser should be only called once at program exit. In most cases, you don't have call cleanup functions at all. Cleanup the memory allocated for the char encoding support, it unregisters all the encoding handlers and the aliases. Unregisters all aliases DEPRECATED: This function is a no-op. Call xmlCleanupParser to free global state but see the warnings there. xmlCleanupParser should be only called once at program exit. In most cases, you don't have call cleanup functions at all. clears the entire input callback table. this includes the compiled-in I/O. DEPRECATED: This function is a no-op. Call xmlCleanupParser to free global state but see the warnings there. xmlCleanupParser should be only called once at program exit. In most cases, you don't have call cleanup functions at all. defined(LIBXML_OUTPUT_ENABLED) clears the entire output callback table. this includes the compiled-in I/O callbacks. This function name is somewhat misleading. It does not clean up parser state, it cleans up memory allocated by the library itself. It is a cleanup function for the XML library. It tries to reclaim all related global memory allocated for the library processing. It doesn't deallocate any document related memory. One should call xmlCleanupParser() only when the process has finished using the library and all XML/HTML documents built with it. See also xmlInitParser() which has the opposite function of preparing the library for operations. WARNING: if your application is multithreaded or has plugin support calling this may crash the application if another thread or a plugin is still using libxml2. It's sometimes very hard to guess if libxml2 is in use in the application, some libraries or plugins may use it without notice. In case of doubt abstain from calling this function or do it just before calling exit() to avoid leak reports from valgrind ! defined(LIBXML_LEGACY_ENABLED) Cleanup up the predefined entities table. Deprecated call DEPRECATED: This function is a no-op. Call xmlCleanupParser to free global state but see the warnings there. xmlCleanupParser should be only called once at program exit. In most cases, you don't have call cleanup functions at all. DEPRECATED: Don't use. -- Clear (release memory and reinitialize) node info sequence Clear (release owned resources) and reinitialize a parser context defined(LIBXML_CATALOG_ENABLED) Convert all the SGML catalog entries as XML ones defined(LIBXML_TREE_ENABLED) Build a copy of an attribute table. append the char value in the array append the char value in the array defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) Do a copy of the document info. If recursive, the content tree will be copied too as well as DTD, namespaces and entities. Build a copy of an element content description. defined(LIBXML_TREE_ENABLED) Do a copy of the dtd. Build a copy of an element content description. Deprecated, use xmlCopyDocElementContent instead defined(LIBXML_TREE_ENABLED) Build a copy of an element table. defined(LIBXML_TREE_ENABLED) Build a copy of an entity table. defined(LIBXML_TREE_ENABLED) 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. Use xmlDocCopyNodeList() if possible to ensure string interning. defined(LIBXML_TREE_ENABLED) 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. This really doesn't make sense and should be deprecated 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. defined(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 To protect against exponential entity expansion ("billion laughs"), the size of serialized output is (roughly) limited to the input size multiplied by this factor. The default value is 5. When working with documents making heavy use of entity expansion, it can be necessary to increase the value. For security reasons, this should only be considered when processing trusted input. Applies the options to the parser context DEPRECATED: Internal function, do not use. 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.) A function called to acquire namespaces (xmlNs) from the wrapper. References of out-of scope ns-decls are remapped to point to @destDoc: 1) If @destParent is given, then nsDef entries on element-nodes are used 2) If *no* @destParent is given, then @destDoc->oldNs entries are used This is the case when you have an unlinked node and just want to move it to the context of If @destParent is given, it ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. NOTE: This function was not intensively tested. References of out-of scope ns-decls are remapped to point to @destDoc: 1) If @destParent is given, then nsDef entries on element-nodes are used 2) If *no* @destParent is given, then @destDoc->oldNs entries are used. This is the case when you don't know already where the cloned branch will be added to. If @destParent is given, it ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. TODO: 1) What to do with XInclude? Currently this returns an error for XInclude. Frees the DOM-wrapper context. Allocates and initializes a new DOM-wrapper context. Ensures that ns-references point to ns-decls hold on element-nodes. Ensures that the tree is namespace wellformed by creating additional ns-decls where needed. Note that, since prefixes of already existent ns-decls can be shadowed by this process, it could break QNames in attribute values or element content. NOTE: This function was not intensively tested. Unlinks the given node from its owner. This will substitute ns-references to node->nsDef for ns-references to doc->oldNs, thus ensuring the removed branch to be autark wrt ns-references. NOTE: This function was not intensively tested. defined(LIBXML_DEBUG_ENABLED) Check the document for potential content problems, and output the errors to @output defined(LIBXML_DEBUG_ENABLED) Dumps debug information for the attribute defined(LIBXML_DEBUG_ENABLED) Dumps debug information for the attribute list defined(LIBXML_DEBUG_ENABLED) Dumps debug information for the DTD defined(LIBXML_DEBUG_ENABLED) Dumps debug information for the document, it's recursive defined(LIBXML_DEBUG_ENABLED) Dumps debug information concerning the document, not recursive defined(LIBXML_DEBUG_ENABLED) Dumps debug information for all the entities in use by the document defined(LIBXML_DEBUG_ENABLED) Dumps debug information for the element node, it is recursive defined(LIBXML_DEBUG_ENABLED) Dumps debug information for the list of element node, it is recursive defined(LIBXML_DEBUG_ENABLED) Dumps debug information for the element node, it is not recursive defined(LIBXML_DEBUG_ENABLED) Dumps information about the string, shorten it if necessary defined(LIBXML_LEGACY_ENABLED) 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 ';' DEPRECATED: This function is a no-op. Call xmlInitParser to initialize the library. Initialize the default SAX2 handler Unregisters an encoding alias @alias Registers a callback for node destruction Signature for the deregistration callback of a discarded node 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. DEPRECATED: This function is a no-op. Call xmlCleanupParser to free global state but see the warnings there. xmlCleanupParser should be only called once at program exit. In most cases, you don't have call cleanup functions at all. Create a new dictionary Create a new dictionary, inheriting strings from the read-only dictionary @sub. On lookup, strings are first searched in the new dictionary, then in @sub, and if not found are created in the new dictionary. Check if a string exists in the dictionary. Free the hash @dict and its contents. The userdata is deallocated with @f if provided. Get how much memory is used by a dictionary for strings Added in 2.9.0 Lookup a string and add it to the dictionary if it wasn't found. check if a string is owned by the dictionary Lookup the QName @prefix:@name and add it to the dictionary if it wasn't found. Increment the reference counter of a dictionary Set a size limit for the dictionary Added in 2.9.0 Query the number of elements installed in the hash @dict. Do a copy of the node to a given document. Do a recursive copy of the node list. defined(LIBXML_OUTPUT_ENABLED) Dump an XML document to an open FILE. defined(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 defined(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 defined(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. defined(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(). defined(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 ...). defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) Set the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...). defined(LIBXML_OUTPUT_ENABLED) This will dump the content of the attribute declaration as an XML DTD definition defined(LIBXML_OUTPUT_ENABLED) This will dump the content of the attribute table as an XML DTD definition defined(LIBXML_OUTPUT_ENABLED) This will dump the content of the element declaration as an XML DTD definition defined(LIBXML_OUTPUT_ENABLED) This will dump the content of the element table as an XML DTD definition defined(LIBXML_OUTPUT_ENABLED) This will dump the content of the entity table as an XML DTD definition defined(LIBXML_OUTPUT_ENABLED) This will dump the content of the entity table as an XML DTD definition defined(LIBXML_OUTPUT_ENABLED) This will dump the content the notation declaration as an XML DTD definition defined(LIBXML_OUTPUT_ENABLED) This will dump the content of the notation table as an XML DTD definition defined(LIBXML_OUTPUT_ENABLED) Dump an XML/HTML node, recursive behaviour, children are printed too. defined(LIBXML_LEGACY_ENABLED) 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. defined(LIBXML_LEGACY_ENABLED) Callback function used when one needs to be able to track back the provenance of a chunk of nodes inherited from an entity replacement. defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Debugging facility provides the number of allocated nodes over lifetime defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Debugging facility provides the number of allocated nodes at a that point defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Serialize the expression as compiled to the buffer defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Evaluates the expression resulting from @exp consuming a sub expression @sub Based on algebraic derivation and sometimes direct Brzozowski derivation it usually takes less than linear time and can handle expressions generating infinite languages. defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Dereference the expression defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Free an expression context defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Find all the strings used in @exp and store them in @list defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Find all the strings that appears at the start of the languages accepted by @exp and store them in @list. E.g. for (a, b) | c it will return the list [a, c] defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Finds if the expression is nillable, i.e. if it accepts the empty sequence defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Indicate the maximum number of input a expression can accept defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Get the atom associated to this name from that context defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Creates a new context for manipulating expressions defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Get the atom associated to the choice @left | @right Note that @left and @right are consumed in the operation, to keep an handle on them use xmlExpRef() and use xmlExpFree() to release them, this is true even in case of failure (unless ctxt == NULL). defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Get the atom associated to the range (@subset){@min, @max} Note that @subset is consumed in the operation, to keep an handle on it use xmlExpRef() and use xmlExpFree() to release it, this is true even in case of failure (unless ctxt == NULL). defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Get the atom associated to the sequence @left , @right Note that @left and @right are consumed in the operation, to keep an handle on them use xmlExpRef() and use xmlExpFree() to release them, this is true even in case of failure (unless ctxt == NULL). defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Minimal parser for regexps, it understand the following constructs - string terminals - choice operator | - sequence operator , - subexpressions (...) - usual cardinality operators + * and ? - finite sequences { min, max } - infinite sequences { min, * } There is minimal checkings made especially no checking on strings values defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Increase the reference count of the expression defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Do one step of Brzozowski derivation of the expression @exp with respect to the input string defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED) Check whether @exp accepts all the languages accepted by @sub the input being a subexpression. 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 or create a new one. defined(LIBXML_TREE_ENABLED) Finds the first child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. Deallocate the memory used by an entities hash table. defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) Free an automata defined(LIBXML_CATALOG_ENABLED) Free the memory allocated to a Catalog Free up all the structures used by a document, tree included. Free an element content structure. The whole subtree is removed. Free a DTD structure. Free an element content structure. The whole subtree is removed. Deprecated, use xmlFreeDocElementContent instead 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. Free a mutex. 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 defined(LIBXML_PATTERN_ENABLED) Free up the memory allocated by @comp defined(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. DEPRECATED, do not use. This function will be removed from the public API. Deallocate the memory used by an Ref hash table. defined(LIBXML_PATTERN_ENABLED) Free the stream context defined(LIBXML_READER_ENABLED) Deallocate all the resources associated to the reader defined(LIBXML_WRITER_ENABLED) Deallocate all the resources associated to the writer Free up the xmlURI struct defined(LIBXML_VALID_ENABLED) 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 XML_BUFFER_ALLOC_HYBRID - use exact sizes on small strings to keep memory usage tight in normal usage, and doubleit on large strings to avoid pathological 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 defined(LIBXML_LEGACY_ENABLED) Read the current value of one feature of this parser instance defined(LIBXML_LEGACY_ENABLED) Copy at most *@len feature names into the @result array DEPRECATED 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. Try to override the limitation of lines being store in 16 bits ints if XML_PARSE_BIG_LINES parser option was used 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. defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED) Build a structure based Path for the given node defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_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. DEPRECATED, do not use. This function will be removed from the public API. Find the set of references for the supplied ID. DEPRECATED: Internal function, do not use. xmlGetThreadId() find the current thread ID number Note that this is likely to be broken on some platforms using pthreads as the specification doesn't mandate pthread_t to be an integer type Read the first UTF8 character from @utf defined(LIBXML_LEGACY_ENABLED) 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. Examines if the library has been compiled with a given feature. 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. Note that a namespace of NULL indicates to use the default namespace. 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 a hash table entry. If an entry with this key already exists, payload will not be updated and -1 is returned. This return value can't be distinguished from out-of-memory errors, so this function should be used with care. Add a hash table entry with two strings as key. See xmlHashAddEntry. Add a hash table entry with three strings as key. See xmlHashAddEntry. Callback to copy data from a hash. Copy the hash @table using @copy to copy payloads. Create a new hash table. Set size to zero if the number of entries can't be estimated. Create a new hash table backed by a dictionary. This can reduce resource usage considerably if most keys passed to API functions originate from this dictionary. Callback to free data from a hash. Free a hash table entry with xmlFree. Free the hash and its contents. The payload is deallocated with @dealloc if provided. Find the entry specified by @key. Find the payload specified by the (@key, @key2) tuple. Find the payload specified by the (@key, @key2, @key3) tuple. Find the payload specified by the QName @prefix:@name or @name. Find the payload specified by the QNames tuple. Find the payload specified by the QNames tuple. Find the entry specified by the @key and remove it from the hash table. Payload will be freed with @dealloc. Remove an entry with two strings as key. See xmlHashRemoveEntry. Remove an entry with three strings as key. See xmlHashRemoveEntry. Scan the hash @table and apply @scan to each value. Scan the hash @table and apply @scan to each value matching (@key, @key2, @key3) tuple. If one of the keys is null, the comparison is considered to match. Scan the hash @table and apply @scan to each value. Scan the hash @table and apply @scan to each value matching (@key, @key2, @key3) tuple. If one of the keys 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 in the hash table. Add a hash table entry. If an entry with this key already exists, the old payload will be freed and updated with the new value. Add a hash table entry with two strings as key. See xmlHashUpdateEntry. Add a hash table entry with three strings as key. See xmlHashUpdateEntry. defined(LIBXML_FTP_ENABLED) Close an FTP I/O channel defined(LIBXML_FTP_ENABLED) check if the URI matches an FTP one defined(LIBXML_FTP_ENABLED) open an FTP I/O channel defined(LIBXML_FTP_ENABLED) Read @len bytes to @buffer from the I/O channel. defined(LIBXML_HTTP_ENABLED) Close an HTTP I/O channel defined(LIBXML_HTTP_ENABLED) check if the URI matches an HTTP one defined(LIBXML_HTTP_ENABLED) open an HTTP I/O channel defined(LIBXML_HTTP_ENABLED) && defined(LIBXML_OUTPUT_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. defined(LIBXML_HTTP_ENABLED) Read @len bytes to @buffer from the I/O channel. defined(LIBXML_VALID_ENABLED) Load and parse a DTD DEPRECATED: Alias for xmlInitParser. DEPRECATED: Alias for xmlInitParser. DEPRECATED: Alias for xmlInitParser. DEPRECATED: Don't use. -- Initialize (set to initial state) node info sequence Initialization function for the XML parser. Call once from the main thread before using the library in multithreaded programs. DEPRECATED: Internal function which will be made private in a future version. Initialize a parser context DEPRECATED: Alias for xmlInitParser. defined(LIBXML_CATALOG_ENABLED) Do the catalog initialization. this function is not thread safe, catalog initialization should preferably be done once at startup DEPRECATED: Alias for xmlInitParser. DEPRECATED: No-op. defined(LIBXML_LEGACY_ENABLED) 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 functionality 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 DEPRECATED: Internal function, do not use. 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 DEPRECATED, do not use. This function will be removed from the public API. 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 DEPRECATED: Use the modern options API with XML_PARSE_NOBLANKS. 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. defined(LIBXML_TREE_ENABLED) Finds the last child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. DEPRECATED: The modern options API always enables line numbers. 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(). defined(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. defined(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 defined(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 defined(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. defined(LIBXML_DEBUG_ENABLED) Count the children of @node. defined(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. Provides the number of memory areas currently allocated show in-extenso the memory blocks allocated the last nbBytes of memory allocated and not freed, useful for dumping the memory left allocated between two places at runtime. a free() equivalent, with error checking. Provides the memory access functions set currently in use a malloc() equivalent, with logging of the allocation info. a realloc() equivalent, with logging of the allocation info. 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 a strdup() equivalent, with logging of the allocation info. defined(LIBXML_MODULES_ENABLED) The close operations unload the associated module and free the data associated to the module. defined(LIBXML_MODULES_ENABLED) The free operations free the data associated to the module but does not unload the associated shared library which may still be in use. defined(LIBXML_MODULES_ENABLED) Opens a module/shared library given its name or path NOTE: that due to portability issues, behaviour can only be guaranteed with @name using ASCII. We cannot guarantee that an UTF-8 string would work, which is why name is a const char * and not a const xmlChar * . TODO: options are not yet implemented. defined(LIBXML_MODULES_ENABLED) Lookup for a symbol address in the given module NOTE: that due to portability issues, behaviour can only be guaranteed with @name using ASCII. We cannot guarantee that an UTF-8 string would work, which is why name is a const char * and not a const xmlChar * . xmlMutexLock() is used to lock a libxml2 token. xmlMutexUnlock() is used to unlock a libxml2 token. defined(LIBXML_LEGACY_ENABLED) 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 defined(LIBXML_LEGACY_ENABLED) 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)? defined(LIBXML_LEGACY_ENABLED) 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 defined(LIBXML_FTP_ENABLED) Check if there is a response from the FTP server after a command. defined(LIBXML_FTP_ENABLED) Cleanup the FTP protocol layer. This cleanup proxy information. defined(LIBXML_FTP_ENABLED) Close the connection and both control and transport defined(LIBXML_FTP_ENABLED) Close the data connection from the server defined(LIBXML_FTP_ENABLED) Tries to open a control connection defined(LIBXML_FTP_ENABLED) Tries to open a control connection to the given server/port defined(LIBXML_FTP_ENABLED) Tries to change the remote directory defined(LIBXML_FTP_ENABLED) Tries to delete an item (file or directory) from server defined(LIBXML_FTP_ENABLED) Frees the context after closing the connection. defined(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. defined(LIBXML_FTP_ENABLED) Try to open a data connection to the server. Currently only passive mode is supported. defined(LIBXML_FTP_ENABLED) Get the response from the FTP server after a command. defined(LIBXML_FTP_ENABLED) Initiate fetch of the given file from the server. defined(LIBXML_FTP_ENABLED) Initialize the FTP protocol layer. Currently it just checks for proxy information, and get the hostname defined(LIBXML_FTP_ENABLED) Do a listing on the server. All files info are passed back in the callbacks. defined(LIBXML_FTP_ENABLED) Allocate and initialize a new FTP context. defined(LIBXML_FTP_ENABLED) Start to fetch the given ftp:// resource defined(LIBXML_FTP_ENABLED) Setup the FTP proxy information. This can also be done by using ftp_proxy ftp_proxy_user and ftp_proxy_password environment variables. defined(LIBXML_FTP_ENABLED) Send a QUIT command to the server defined(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. defined(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 information. defined(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. defined(LIBXML_HTTP_ENABLED) Get the authentication header of an HTTP context defined(LIBXML_HTTP_ENABLED) Cleanup the HTTP protocol layer. defined(LIBXML_HTTP_ENABLED) This function closes an HTTP context, it ends up the connection and free all data related to it. defined(LIBXML_HTTP_ENABLED) Provides the specified content length from the HTTP header. defined(LIBXML_HTTP_ENABLED) Provides the specified encoding if specified in the HTTP headers. defined(LIBXML_HTTP_ENABLED) This function try to fetch the indicated resource via HTTP GET and save it's content in the file. defined(LIBXML_HTTP_ENABLED) Initialize the HTTP protocol layer. Currently it just checks for proxy information defined(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. defined(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. defined(LIBXML_HTTP_ENABLED) Provides the specified Mime-Type if specified in the HTTP headers. defined(LIBXML_HTTP_ENABLED) This function try to open a connection to the indicated resource via HTTP GET. defined(LIBXML_HTTP_ENABLED) This function try to open a connection to the indicated resource via HTTP GET. defined(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. defined(LIBXML_HTTP_ENABLED) Provides the specified redirection URL if available from the HTTP header. defined(LIBXML_HTTP_ENABLED) Get the latest HTTP return code received defined(LIBXML_HTTP_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) This function saves the output of the HTTP transaction to a file It closes and free the context at the end defined(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 information. defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED) Create a new automata Creation of a new node containing a CDATA block. defined(LIBXML_CATALOG_ENABLED) create a new Catalog. Create and registers an xmlCharEncodingHandler. Creation of a new character reference node. defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) 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. Use of this function is DISCOURAGED in favor of xmlNewDocComment. Creation of a new node containing a comment. Creates a new XML document Creation of a new node containing a comment within a document. Allocate an element content structure for the document. defined(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. Creation of a processing instruction element. Create a new property carried by a document. NOTE: @value is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewProp() if you don't need entities support. defined(LIBXML_TREE_ENABLED) 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. Deprecated in favor of xmlNewDocElementContent Create a new entity, this differs from xmlAddDocEntity() that if the document is NULL or has no internal subset defined, then an unlinked entity structure will be returned, it is then the responsibility of the caller to link it to the document later or free it when not needed anymore. DEPRECATED: Internal function, do not use. Create a new input stream based on an xmlEntityPtr defined(LIBXML_LEGACY_ENABLED) Creation of a Namespace, the old way using PI and without scoping DEPRECATED !!! 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). Use of this function is DISCOURAGED in favor of xmlNewDocNode. Creation of a new node element. @ns is optional (NULL). Use of this function is DISCOURAGED in favor of xmlNewDocNodeEatName. 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. Note that for a default namespace, @prefix should be NULL. 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. Use of this function is DISCOURAGED in favor of xmlNewDocPI. Allocate and initialize a new parser context. defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) 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. Allocate and initialize a new SAX parser context. If userData is NULL, the parser context will be passed as user data. Create a new input stream based on a memory buffer. Creation of a new text node. Use of this function is DISCOURAGED in favor of xmlNewDocText. defined(LIBXML_TREE_ENABLED) 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. Use of this function is DISCOURAGED in favor of xmlNewDocTextLen. Creation of a new text node with an extra parameter for the content's length defined(LIBXML_READER_ENABLED) Create an xmlTextReader structure fed with @input defined(LIBXML_READER_ENABLED) Create an xmlTextReader structure fed with the resource at @URI defined(LIBXML_WRITER_ENABLED) Create a new xmlNewTextWriter structure using an xmlOutputBufferPtr NOTE: the @out parameter will be deallocated when the writer is closed (if the call succeed.) defined(LIBXML_WRITER_ENABLED) Create a new xmlNewTextWriter structure with @*doc as output defined(LIBXML_WRITER_ENABLED) Create a new xmlNewTextWriter structure with @uri as output defined(LIBXML_WRITER_ENABLED) Create a new xmlNewTextWriter structure with @buf as output TODO: handle compression defined(LIBXML_WRITER_ENABLED) Create a new xmlNewTextWriter structure with @ctxt as output NOTE: the @ctxt context will be freed with the resulting writer (if the call succeeds). TODO: handle compression defined(LIBXML_WRITER_ENABLED) Create a new xmlNewTextWriter structure with @doc as output starting at @node defined(LIBXML_VALID_ENABLED) Allocate a validation context structure. DEPRECATED: Internal function, do not use. Skip to the next char input char. defined(LIBXML_TREE_ENABLED) Finds the first closest next sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. A specific entity loader disabling network accesses, though still allowing local catalog accesses for resolution. Append the extra substring to the node content. NOTE: In contrast to xmlNodeSetContent(), @content is supposed to be raw text, so unescaped XML special chars are allowed, entity references are not supported. Append the extra substring to the node content. NOTE: In contrast to xmlNodeSetContentLen(), @content is supposed to be raw text, so unescaped XML special chars are allowed, entity references are not supported. 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 defined(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. Since this is using xmlBuffer structures it is limited to 2GB and somehow deprecated, use xmlNodeDumpOutput() instead. defined(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 doc->URL in this case 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 ? defined(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 defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_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. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant() resp. xmlEncodeSpecialChars(). defined(LIBXML_TREE_ENABLED) Replace the content of a node. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant() resp. xmlEncodeSpecialChars(). defined(LIBXML_TREE_ENABLED) Set the language of a node, i.e. the values of the xml:lang attribute. defined(LIBXML_TREE_ENABLED) Set (or reset) the name of a node. defined(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. defined(LIBXML_OUTPUT_ENABLED) flushes and close the output I/O channel and free up all the associated resources defined(LIBXML_OUTPUT_ENABLED) Create a buffered output for the progressive saving to a xmlBuffer defined(LIBXML_OUTPUT_ENABLED) Create a buffered output for the progressive saving to a file descriptor defined(LIBXML_OUTPUT_ENABLED) Create a buffered output for the progressive saving to a FILE * buffered C I/O defined(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 Signature for the function doing the lookup for a suitable output method corresponding to an URI. defined(LIBXML_OUTPUT_ENABLED) Create a buffered output for the progressive saving to an I/O handler defined(LIBXML_OUTPUT_ENABLED) flushes the output I/O channel defined(LIBXML_OUTPUT_ENABLED) Gives a pointer to the data currently held in the output buffer defined(LIBXML_OUTPUT_ENABLED) Gives the length of the data currently held in the output buffer defined(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. defined(LIBXML_OUTPUT_ENABLED) Write the content of the string in the output I/O buffer This routine escapes the characters 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. defined(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. defined(LIBXML_OUTPUT_ENABLED) Callback used in the I/O Output API to close the resource defined(LIBXML_OUTPUT_ENABLED) Callback used in the I/O Output API to detect if the current handler can provide output functionality for this resource. defined(LIBXML_OUTPUT_ENABLED) Callback used in the I/O Output API to open the resource defined(LIBXML_OUTPUT_ENABLED) Callback used in the I/O Output API to write to the resource DEPRECATED: Internal function, don't use. 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. defined(LIBXML_SAX1_ENABLED) DEPRECATED: Internal function, don't use. 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. DEPRECATED: Internal function, don't use. Parse an attribute list declaration for an element. Always consumes '<!'. [52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>' [53] AttDef ::= S Name S AttType S DefaultDecl DEPRECATED: Internal function, don't use. 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. defined(LIBXML_SAX1_ENABLED) 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)* defined(LIBXML_SAX1_ENABLED) 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)* DEPRECATED: Internal function, don't use. Parse escaped pure raw content. Always consumes '<!['. [18] CDSect ::= CDStart CData CDEnd [19] CDStart ::= '<![CDATA[' [20] Data ::= (Char* - (Char* ']]>' Char*)) [21] CDEnd ::= ']]>' defined(LIBXML_CATALOG_ENABLED) parse an XML file and build a tree. It's like xmlParseFile() except it bypass all catalog lookups. DEPRECATED: Internal function, don't use. 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. DEPRECATED: Internal function, don't use. Parse a numeric character reference. Always consumes '&'. [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' [ WFC: Legal Character ] Characters referred to using character references must match the production for Char. defined(LIBXML_PUSH_ENABLED) Parse a Chunk of memory DEPRECATED: Internal function, don't use. Parse an XML (SGML) comment. Always consumes '<!'. The spec says that "For compatibility, the string "--" (double-hyphen) must not occur within comments. " [15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->' Parse a content sequence. Stops at EOF or '</'. [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 defined(LIBXML_VALID_ENABLED) Load and parse an external subset. DEPRECATED: Internal function, don't use. 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() defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlReadDoc. parse an XML in-memory document and build a tree. DEPRECATED: Internal function, don't use. 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*)? DEPRECATED: Internal function, don't use. parse an XML element [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. DEPRECATED: Internal function, don't use. 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 ,). DEPRECATED: Internal function, don't use. 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 DEPRECATED: Internal function, don't use. Parse an element declaration. Always consumes '<!'. [45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>' [ VC: Unique Element Type Declaration ] No element type may be declared more than once DEPRECATED: Internal function, don't use. 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. DEPRECATED: Internal function, don't use. parse the XML encoding name [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')* DEPRECATED: Internal function, don't use. parse the XML encoding declaration [80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'") this setups the conversion filters. defined(LIBXML_SAX1_ENABLED) DEPRECATED: Internal function, don't use. parse an end of tag [42] ETag ::= '</' Name S? '>' With namespace [NS 9] ETag ::= '</' QName S? '>' defined(LIBXML_SAX1_ENABLED) parse an XML external entity out of context and build a tree. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk DEPRECATED: Internal function, don't use. Parse an entity declaration. Always consumes '<!'. [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. DEPRECATED: Internal function, don't use. Parse an entitiy reference. Always consumes '&'. [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 DEPRECATED: Internal function, don't use. parse a value for ENTITY declarations [9] EntityValue ::= '"' ([^%&"] | PEReference | Reference)* '"' | "'" ([^%&'] | PEReference | Reference)* "'" DEPRECATED: Internal function, don't use. parse an Enumerated attribute type. [57] EnumeratedType ::= NotationType | Enumeration [58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')' DEPRECATED: Internal function, don't use. 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 defined(LIBXML_SAX1_ENABLED) Parse an external general entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content DEPRECATED: Internal function, don't use. 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) * defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlReadFile. 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)* DEPRECATED: Internal function, don't use. Parse markup declarations. Always consumes '<!' or '<?'. [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.) defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlReadMemory. parse an XML in-memory block and build a tree. DEPRECATED: Internal function, don't use. parse an XML Misc* optional field. [27] Misc ::= Comment | PI | S DEPRECATED: Internal function, don't use. parse an XML name. [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (#x20 Name)* defined(LIBXML_LEGACY_ENABLED) 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 DEPRECATED: Internal function, don't use. parse an XML Nmtoken. [7] Nmtoken ::= (NameChar)+ [8] Nmtokens ::= Nmtoken (#x20 Nmtoken)* DEPRECATED: Internal function, don't use. Parse a notation declaration. Always consumes '<!'. [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(). DEPRECATED: Internal function, don't use. 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. DEPRECATED: Internal function, don't use. Parse a parameter entity reference. Always consumes '%'. 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. DEPRECATED: Internal function, don't use. parse an XML Processing Instruction. [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' The processing is transferred to SAX once parsed. DEPRECATED: Internal function, don't use. parse the name of a PI [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) DEPRECATED: Internal function, don't use. parse an XML public literal [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'" defined(LIBXML_LEGACY_ENABLED) Parse and return a string between quotes or doublequotes TODO: Deprecated, to be removed at next drop of binary compatibility DEPRECATED: Internal function, don't use. 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. Always consumes '&'. [67] Reference ::= EntityRef | CharRef DEPRECATED: Internal function, don't use. 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. defined(LIBXML_SAX1_ENABLED) DEPRECATED: Internal function, don't use. Parse a start tag. Always consumes '<'. [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? '/>' DEPRECATED: Internal function, don't use. parse an XML Literal [11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'") DEPRECATED: Internal function, don't use. parse an XML declaration header for external entities [77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>' Parse an URI based on RFC 3986 URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ] Parse an URI but allows to keep intact the original fragments. URI-reference = URI / relative-ref Parse an URI reference string based on RFC 3986 and fills in the appropriate fields of the @uri structure URI-reference = URI / relative-ref DEPRECATED: Internal function, don't use. parse the XML version. [24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ") [25] Eq ::= S? '=' S? DEPRECATED: Internal function, don't use. parse the XML version value. [26] VersionNum ::= '1.' [0-9]+ In practice allow [0-9].[0-9]+ at that level DEPRECATED: Internal function, don't use. parse an XML declaration header [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>' DEPRECATED: Don't use. Insert node info record into the sorted sequence Display and format an error messages, gives file, line, position and extra parameters. DEPRECATED: Don't use. Find the parser node info struct for a given node DEPRECATED: Don't use. 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 DEPRECATED: Internal function, do not use. [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 defined(LIBXML_LEGACY_ENABLED) 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 Signature for the function doing the lookup for a suitable input method corresponding to an URI. 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. DEPRECATED: Use xmlParserInputBufferCreateMem. 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. DEPRECATED: Don't use. This function increase the input for the parser. It tries to preserve pointers to the input buffer, and keep already read data DEPRECATED: This function was internal and is deprecated. DEPRECATED: Don't use. This function removes used input for the parser. Displays current context within the input content for error tracking Displays the associated file and line information 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. Constructs an URI expressing the existing path defined(LIBXML_PATTERN_ENABLED) Check if the pattern must be looked at from the root. defined(LIBXML_PATTERN_ENABLED) Get a streaming context for that pattern Use xmlFreeStreamCtxt to free the context. defined(LIBXML_PATTERN_ENABLED) Test whether the node matches the pattern defined(LIBXML_PATTERN_ENABLED) Check the maximum depth reachable by a pattern defined(LIBXML_PATTERN_ENABLED) Check the minimum depth reachable by a pattern, 0 mean the / or . are part of the set. defined(LIBXML_PATTERN_ENABLED) Check if the pattern is streamable i.e. xmlPatternGetStreamCtxt() should work. defined(LIBXML_PATTERN_ENABLED) Compile a pattern. DEPRECATED: Use the modern options API with XML_PARSE_PEDANTIC. 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. defined(LIBXML_OUTPUT_ENABLED) Remove the top output callbacks from the output stack. This includes the compiled-in I/O. defined(LIBXML_TREE_ENABLED) Finds the first closest previous sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. Prints the URI in the stream @stream. 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. defined(LIBXML_READER_ENABLED) Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. defined(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. defined(LIBXML_READER_ENABLED) parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption. defined(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. defined(LIBXML_READER_ENABLED) Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. defined(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. defined(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. defined(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. defined(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. defined(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. defined(LIBXML_READER_ENABLED) Setup an xmltextReader to parse a preparsed XML document. This reuses the existing @reader xmlTextReader. defined(LIBXML_READER_ENABLED) Create an xmltextReader for a preparsed document. Signature for a realloc() implementation. a realloc() equivalent, with logging of the allocation info. defined(LIBXML_TREE_ENABLED) 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. defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlReadDoc with XML_PARSE_RECOVER. parse an XML in-memory document and build a tree. In the case the document is not Well Formed, a attempt to build a tree is tried anyway defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlReadFile with XML_PARSE_RECOVER. 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, it attempts to build a tree anyway defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlReadMemory with XML_PARSE_RECOVER. parse an XML in-memory block and build a tree. In the case the document is not Well Formed, an attempt to build a tree is tried anyway defined(LIBXML_REGEXP_ENABLED) Callback function when doing a transition in the automata defined(LIBXML_REGEXP_ENABLED) Extract error information from the regexp execution, the parameter @string will be updated with the value pushed and not accepted, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values defined(LIBXML_REGEXP_ENABLED) Extract information from the regexp execution, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values defined(LIBXML_REGEXP_ENABLED) Push one input token in the execution context defined(LIBXML_REGEXP_ENABLED) Push one input token in the execution context defined(LIBXML_REGEXP_ENABLED) Free the structures associated to a regular expression evaluation context. defined(LIBXML_REGEXP_ENABLED) Free a regexp defined(LIBXML_REGEXP_ENABLED) Build a context used for progressive evaluation of a regexp. defined(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 defined(LIBXML_REGEXP_ENABLED) Check if the regular expression generates the value defined(LIBXML_REGEXP_ENABLED) Check if the regular expression is determinist defined(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. defined(LIBXML_OUTPUT_ENABLED) Registers the default compiled-in I/O handlers. defined(LIBXML_OUTPUT_ENABLED) && defined(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 Signature for the registration callback of a created node defined(LIBXML_OUTPUT_ENABLED) Register a new set of I/O callback for handling output. defined(LIBXML_SCHEMAS_ENABLED) DEPRECATED: This function will be made private. Call xmlCleanupParser to free global state but see the warnings there. xmlCleanupParser should be only called once at program exit. In most cases, you don't have call cleanup functions at all. Cleanup the default Schemas type library associated to RelaxNG defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump a RelaxNG structure back defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump the transformed RelaxNG tree. defined(LIBXML_SCHEMAS_ENABLED) Deallocate a RelaxNG structure. defined(LIBXML_SCHEMAS_ENABLED) Free the resources associated to the schema parser context defined(LIBXML_SCHEMAS_ENABLED) Free the resources associated to the schema validation context defined(LIBXML_SCHEMAS_ENABLED) Get the callback information used to handle errors for a validation context defined(LIBXML_SCHEMAS_ENABLED) Get the error and warning callback information defined(LIBXML_SCHEMAS_ENABLED) Initialize the default type libraries. defined(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. defined(LIBXML_SCHEMAS_ENABLED) Create an XML RelaxNGs parse context for that memory buffer expected to contain an XML RelaxNGs file. defined(LIBXML_SCHEMAS_ENABLED) Create an XML RelaxNGs parse context for that file/resource expected to contain an XML RelaxNGs file. defined(LIBXML_SCHEMAS_ENABLED) Create an XML RelaxNGs validation context based on the given schema defined(LIBXML_SCHEMAS_ENABLED) parse a schema definition resource and build an internal XML Schema structure which can be used to validate instances. defined(LIBXML_SCHEMAS_ENABLED) Set the callback functions used to handle errors for a validation context defined(LIBXML_SCHEMAS_ENABLED) Set the callback functions used to handle errors for a parsing context defined(LIBXML_SCHEMAS_ENABLED) Set the error and warning callback information defined(LIBXML_SCHEMAS_ENABLED) Set the structured error callback defined(LIBXML_SCHEMAS_ENABLED) Validate a document tree in memory. defined(LIBXML_SCHEMAS_ENABLED) Validate a full subtree when xmlRelaxNGValidatePushElement() returned 0 and the content of the node has been expanded. defined(LIBXML_SCHEMAS_ENABLED) Pop the element end from the RelaxNG validation stack. defined(LIBXML_SCHEMAS_ENABLED) check the CData parsed for validation in the current stack defined(LIBXML_SCHEMAS_ENABLED) Push a new element start on the RelaxNG validation stack. defined(LIBXML_SCHEMAS_ENABLED) Signature of an error callback from a Relax-NG validation defined(LIBXML_SCHEMAS_ENABLED) Signature of a warning callback from a Relax-NG validation defined(LIBXML_SCHEMAS_ENABLED) Semi private function used to pass information to a parser context which are a combination of xmlRelaxNGParserFlag . Remove the given attribute from the ID table maintained internally. Unlink and free one attribute, all the content is freed too Note this doesn't work for namespace definition attributes DEPRECATED, do not use. This function will be removed from the public API. Remove the given attribute from the Ref table maintained internally. defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_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. See the note regarding namespaces in xmlAddChild. 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. defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_LEGACY_ENABLED) 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 information 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 defined(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. defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_LEGACY_ENABLED) called when an opening tag has been processed. SAX2 callback when an element start has been detected by the parser. It provides the namespace information for the element, as well as the new namespace declarations on the element. What to do when an unparsed entity declaration is parsed defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use parser option XML_PARSE_SAX1. 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. defined(LIBXML_VALID_ENABLED) DEPRECATED: Don't use. Load and parse an external subset. defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlNewSAXParserCtxt and xmlCtxtReadDoc. 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. defined(LIBXML_SAX1_ENABLED) DEPRECATED: Don't use. 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 defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlNewSAXParserCtxt and xmlCtxtReadFile. 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. defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlNewSAXParserCtxt and xmlCtxtReadFile. 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 defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlNewSAXParserCtxt and xmlCtxtReadMemory. 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. defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlNewSAXParserCtxt and xmlCtxtReadMemory. 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 defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlNewSAXParserCtxt and xmlCtxtReadFile. parse an XML file and call the given SAX handler routines. Automatic support for ZLIB/Compress compressed document is provided defined(LIBXML_SAX1_ENABLED) DEPRECATED: Use xmlNewSAXParserCtxt and xmlCtxtReadMemory. parse an XML in-memory buffer and call the given SAX handler routines. Initialize the default XML SAX handler according to the version defined(LIBXML_OUTPUT_ENABLED) Close a document saving context, i.e. make sure that all bytes have been output and free the associated data. defined(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 defined(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. defined(LIBXML_OUTPUT_ENABLED) Dump an XML document, converting it to the given encoding defined(LIBXML_OUTPUT_ENABLED) Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call. defined(LIBXML_OUTPUT_ENABLED) Flush a document saving context, i.e. make sure that all bytes have been output. defined(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 defined(LIBXML_OUTPUT_ENABLED) Dump an XML document to a file or an URL. defined(LIBXML_OUTPUT_ENABLED) Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call. defined(LIBXML_OUTPUT_ENABLED) Set a custom escaping function to be used for text in attribute content defined(LIBXML_OUTPUT_ENABLED) Set a custom escaping function to be used for text in element content defined(LIBXML_OUTPUT_ENABLED) Create a document saving context serializing to a buffer with the encoding and the options given defined(LIBXML_OUTPUT_ENABLED) Create a document saving context serializing to a file descriptor with the encoding and the options given. defined(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. defined(LIBXML_OUTPUT_ENABLED) Create a document saving context serializing to a file descriptor with the encoding and the options given defined(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 defined(LIBXML_LEGACY_ENABLED) 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)* defined(LIBXML_SCHEMAS_ENABLED) Checks and computes the values of facets. defined(LIBXML_SCHEMAS_ENABLED) DEPRECATED: This function will be made private. Call xmlCleanupParser to free global state but see the warnings there. xmlCleanupParser should be only called once at program exit. In most cases, you don't have to call cleanup functions at all. Cleanup the default XML Schemas type library defined(LIBXML_SCHEMAS_ENABLED) Removes and normalize white spaces in the string defined(LIBXML_SCHEMAS_ENABLED) Compare 2 values defined(LIBXML_SCHEMAS_ENABLED) Compare 2 values defined(LIBXML_SCHEMAS_ENABLED) Copies the precomputed value. This duplicates any string within. defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Dump a Schema structure. defined(LIBXML_SCHEMAS_ENABLED) Deallocate a Schema structure. defined(LIBXML_SCHEMAS_ENABLED) Deallocate a Schema Facet structure. defined(LIBXML_SCHEMAS_ENABLED) Free the resources associated to the schema parser context defined(LIBXML_SCHEMAS_ENABLED) Deallocate a Schema Type structure. defined(LIBXML_SCHEMAS_ENABLED) Free the resources associated to the schema validation context defined(LIBXML_SCHEMAS_ENABLED) Cleanup the default XML Schemas type library defined(LIBXML_SCHEMAS_ENABLED) Deallocates a wildcard structure. defined(LIBXML_SCHEMAS_ENABLED) Lookup function defined(LIBXML_SCHEMAS_ENABLED) Gives you the type struct for a built-in type by its type id. defined(LIBXML_SCHEMAS_ENABLED) Get the canonical lexical representation of the value. The caller has to FREE the returned retValue. WARNING: Some value types are not supported yet, resulting in a @retValue of "???". TODO: XML Schema 1.0 does not define canonical representations for: duration, gYearMonth, gYear, gMonthDay, gMonth, gDay, anyURI, QName, NOTATION. This will be fixed in XML Schema 1.1. defined(LIBXML_SCHEMAS_ENABLED) Get the canonical representation of the value. The caller has to free the returned @retValue. defined(LIBXML_SCHEMAS_ENABLED) Extract the value of a facet defined(LIBXML_SCHEMAS_ENABLED) Get the callback information used to handle errors for a parser context defined(LIBXML_SCHEMAS_ENABLED) Lookup a type in the default XML Schemas type library defined(LIBXML_SCHEMAS_ENABLED) Accessor for the type of a value defined(LIBXML_SCHEMAS_ENABLED) Get the error and warning callback information defined(LIBXML_SCHEMAS_ENABLED) Initialize the default XML Schemas type library defined(LIBXML_SCHEMAS_ENABLED) Evaluates if a specific facet can be used in conjunction with a type. defined(LIBXML_SCHEMAS_ENABLED) Check if any error was detected during validation. defined(LIBXML_SCHEMAS_ENABLED) Create an XML Schemas parse context for that document. NB. The document may be modified during the parsing process. defined(LIBXML_SCHEMAS_ENABLED) Allocate a new Facet structure. defined(LIBXML_SCHEMAS_ENABLED) Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file. defined(LIBXML_SCHEMAS_ENABLED) Allocate a new NOTATION value. The given values are consumed and freed with the struct. defined(LIBXML_SCHEMAS_ENABLED) Create an XML Schemas parse context for that file/resource expected to contain an XML Schemas file. defined(LIBXML_SCHEMAS_ENABLED) Allocate a new QName value. The given values are consumed and freed with the struct. defined(LIBXML_SCHEMAS_ENABLED) Allocate a new simple type value. The type can be of XML_SCHEMAS_STRING. WARNING: This one is intended to be expanded for other string based types. We need this for anySimpleType as well. The given value is consumed and freed with the struct. defined(LIBXML_SCHEMAS_ENABLED) Create an XML Schemas validation context based on the given schema. defined(LIBXML_SCHEMAS_ENABLED) parse a schema definition resource and build an internal XML Schema structure which can be used to validate instances. defined(LIBXML_SCHEMAS_ENABLED) Plug a SAX based validation layer in a SAX parsing event flow. The original @saxptr and @dataptr data are replaced by new pointers but the calls to the original will be maintained. defined(LIBXML_SCHEMAS_ENABLED) Unplug a SAX based validation layer in a SAX parsing event flow. The original pointers used in the call are restored. defined(LIBXML_SCHEMAS_ENABLED) Set the callback functions used to handle errors for a validation context defined(LIBXML_SCHEMAS_ENABLED) Set the structured error callback defined(LIBXML_SCHEMAS_ENABLED) Set the error and warning callback information defined(LIBXML_SCHEMAS_ENABLED) Sets the options to be used during the validation. defined(LIBXML_SCHEMAS_ENABLED) Set the structured error callback defined(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. defined(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. defined(LIBXML_SCHEMAS_ENABLED) Get the validation context options. defined(LIBXML_SCHEMAS_ENABLED) allow access to the parser context of the schema validation context defined(LIBXML_SCHEMAS_ENABLED) Validate a document tree in memory. defined(LIBXML_SCHEMAS_ENABLED) Check a value against a facet condition defined(LIBXML_SCHEMAS_ENABLED) Check a value against a facet condition. This takes value normalization according to the specified whitespace types into account. Note that @value needs to be the *normalized* value if the facet is of type "pattern". defined(LIBXML_SCHEMAS_ENABLED) Do a schemas validation of the given resource, it will use the SAX streamable validation internally. defined(LIBXML_SCHEMAS_ENABLED) Checka a value against a "length", "minLength" and "maxLength" facet; sets @length to the computed length of @value. defined(LIBXML_SCHEMAS_ENABLED) Checka a value against a "length", "minLength" and "maxLength" facet; sets @length to the computed length of @value. defined(LIBXML_SCHEMAS_ENABLED) Checks the value of a list simple type against a facet. defined(LIBXML_SCHEMAS_ENABLED) Validate a branch of a tree, starting with the given @elem. defined(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. defined(LIBXML_SCHEMAS_ENABLED) Workaround to provide file error reporting information when this is not provided by current APIs defined(LIBXML_SCHEMAS_ENABLED) Allows to set a locator function to the validation context, which will be used to provide file and line information since those are not provided as part of the SAX validation flow Setting @f to NULL disable the locator. defined(LIBXML_SCHEMAS_ENABLED) Validate an input based on a flow of SAX event from the parser and forward the events to the @sax handler with the provided @user_data the user provided @sax handler must be a SAX2 one. defined(LIBXML_SCHEMAS_ENABLED) Signature of an error callback from an XSD validation defined(LIBXML_SCHEMAS_ENABLED) A schemas validation locator, a callback called by the validator. This is used when file or node information are not available to find out what file and line number are affected defined(LIBXML_SCHEMAS_ENABLED) Signature of a warning callback from an XSD validation defined(LIBXML_SCHEMAS_ENABLED) Appends a next sibling to a list of computed values. defined(LIBXML_SCHEMAS_ENABLED) Accessor for the boolean value of a computed value. defined(LIBXML_SCHEMAS_ENABLED) Accessor for the string value of a computed value. defined(LIBXML_SCHEMAS_ENABLED) Accessor for the next sibling of a list of computed values. defined(LIBXML_SCHEMAS_ENABLED) Replaces 0xd, 0x9 and 0xa with a space. defined(LIBXML_SCHEMATRON_ENABLED) Deallocate a Schematron structure. defined(LIBXML_SCHEMATRON_ENABLED) Free the resources associated to the schema parser context defined(LIBXML_SCHEMATRON_ENABLED) Free the resources associated to the schema validation context defined(LIBXML_SCHEMATRON_ENABLED) Create an XML Schematrons parse context for that document. NB. The document may be modified during the parsing process. defined(LIBXML_SCHEMATRON_ENABLED) Create an XML Schematrons parse context for that memory buffer expected to contain an XML Schematrons file. defined(LIBXML_SCHEMATRON_ENABLED) Create an XML Schematrons parse context for that file/resource expected to contain an XML Schematrons file. defined(LIBXML_SCHEMATRON_ENABLED) Create an XML Schematrons validation context based on the given schema. defined(LIBXML_SCHEMATRON_ENABLED) parse a schema definition resource and build an internal XML Schema structure which can be used to validate instances. defined(LIBXML_SCHEMATRON_ENABLED) Set the structured error callback defined(LIBXML_SCHEMATRON_ENABLED) Validate a tree instance against the schematron defined(LIBXML_SCHEMATRON_ENABLED) Signature of an error callback from a Schematron validation defined(LIBXML_SCHEMATRON_ENABLED) Signature of a warning callback from a Schematron validation 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) defined(LIBXML_LEGACY_ENABLED) Set the function to call call back when a xml reference has been made Changes the defaultexternal entity resolver function for the application defined(LIBXML_LEGACY_ENABLED) 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. defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) Set (or reset) an attribute carried by a node. The ns structure must be in scope, this is not checked defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) Set (or reset) an attribute carried by a node. If @name has a prefix, then the corresponding namespace-binding will be used, if in scope; it is an error it there's no such ns-binding for the prefix in scope. 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 defined(LIBXML_SAX1_ENABLED) DEPRECATED: Don't use. 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 defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) Implements the XML shell This allow to load, validate, view, modify and save a document using a environment similar to a UNIX commandline. defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) Implements the XML shell function "base" dumps the current XML base of the node defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Implements the XML shell function "cat" dumps the serialization node content (XML or HTML). defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) This is a generic signature for the XML shell functions. defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) Implements the XML shell function "dir" dumps information about the node (namespace, attributes, content). defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_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. defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) Implements the XML shell function "ls" Does an Unix like listing of the given node (like a directory) defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) Implements the XML shell function "load" loads a new document specified by the filename defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Print node to the output FILE defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) Print the xpath error to libxml default error channel defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) Prints result to the output FILE defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_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. defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) This is a generic signature for the XML shell input function. defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) Implements the XML shell function "save" Write the current document to the filename, or it's original name defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_VALID_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. defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && defined(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 DEPRECATED: Internal function, do not use. 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 defined(LIBXML_OUTPUT_ENABLED) Deprecated, unsafe, use xmlSnprintfElementContent Blocks further parser processing Check if both strings are equal of have same content. Should be a bit more readable and faster than xmlStrcmp() 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. defined(LIBXML_PATTERN_ENABLED) push one level from the stream. defined(LIBXML_PATTERN_ENABLED) Push new data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Otherwise the function will act as if it has been given an element-node. defined(LIBXML_PATTERN_ENABLED) Push new attribute data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Otherwise the function will act as if it has been given an attribute-node. defined(LIBXML_PATTERN_ENABLED) Push new data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Different from xmlStreamPush() this function can be fed with nodes of type: element-, attribute-, text-, cdata-section-, comment- and processing-instruction-node. defined(LIBXML_PATTERN_ENABLED) Query if the streaming pattern additionally needs to be fed with text-, cdata-section-, comment- and processing-instruction-nodes. If the result is 0 then only element-nodes and attribute-nodes need to be pushed. DEPRECATED: Internal function, do not use. The current char value, if using UTF-8 this may actually span multiple bytes in the input buffer. DEPRECATED: Internal function, don't use. 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. DEPRECATED: Internal function, don't use. 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. Note that if @len < 0 then this is an API error and NULL will be returned. same as xmlStrncat, but creates a new string. The original two strings are not freed. If @len is < 0 then the length will be calculated automatically. 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. DEPRECATED: Use the modern options API with XML_PARSE_NOENT. 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. Use encoding specified by enum to decode input data. This function can be used to enforce the encoding of chunks passed to xmlParseChunk. DEPRECATED: Internal function, don't use. Use encoding handler to decode input data. Use encoding handler to decode input data. This function can be used to enforce the encoding of chunks passed to xmlParseChunk. Concat the given string at the end of the existing node content Merge two text nodes into one defined(LIBXML_READER_ENABLED) Provides the number of attributes of the current node defined(LIBXML_READER_ENABLED) The base URI of the node. defined(LIBXML_READER_ENABLED) This function provides the current index of the parser used by the reader, relative to the start of the current entity. This function actually just wraps a call to xmlBytesConsumed() for the parser context associated with the reader. See xmlBytesConsumed() for more information. defined(LIBXML_READER_ENABLED) This method releases any resources allocated by the current instance changes the state to Closed and close any underlying input. defined(LIBXML_READER_ENABLED) The base URI of the node. defined(LIBXML_READER_ENABLED) Determine the encoding of the document being read. defined(LIBXML_READER_ENABLED) The local name of the node. defined(LIBXML_READER_ENABLED) The qualified name of the node, equal to Prefix :LocalName. defined(LIBXML_READER_ENABLED) The URI defining the namespace associated with the node. defined(LIBXML_READER_ENABLED) A shorthand reference to the namespace associated with the node. defined(LIBXML_READER_ENABLED) Get an interned string from the reader, allows for example to speedup string name comparisons defined(LIBXML_READER_ENABLED) Provides the text value of the node if present defined(LIBXML_READER_ENABLED) The xml:lang scope within which the node resides. defined(LIBXML_READER_ENABLED) Determine the XML version of the document being read. defined(LIBXML_READER_ENABLED) Hacking interface allowing to get the xmlDocPtr corresponding 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. defined(LIBXML_READER_ENABLED) Hacking interface allowing to get the xmlNodePtr corresponding to the current node being accessed by the xmlTextReader. This is dangerous because the underlying node may be destroyed on the next Reads. defined(LIBXML_READER_ENABLED) The depth of the node in the tree. defined(LIBXML_READER_ENABLED) Signature of an error callback from a reader parser defined(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 defined(LIBXML_READER_ENABLED) Provides the value of the attribute with the specified qualified name. defined(LIBXML_READER_ENABLED) Provides the value of the attribute with the specified index relative to the containing element. defined(LIBXML_READER_ENABLED) Provides the value of the specified attribute defined(LIBXML_READER_ENABLED) Retrieve the error callback function and user argument. defined(LIBXML_READER_ENABLED) Provide the column number of the current parsing point. defined(LIBXML_READER_ENABLED) Provide the line number of the current parsing point. defined(LIBXML_READER_ENABLED) Read the parser internal property. defined(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 progressed past what's left in reader->input, and there is an allocation problem. Best would be to rewrite it differently. defined(LIBXML_READER_ENABLED) Whether the node has attributes. defined(LIBXML_READER_ENABLED) Whether the node can have a text value. defined(LIBXML_READER_ENABLED) Whether an Attribute node was generated from the default value defined in the DTD or schema. defined(LIBXML_READER_ENABLED) Check if the current node is empty defined(LIBXML_READER_ENABLED) Determine whether the current node is a namespace declaration rather than a regular attribute. defined(LIBXML_READER_ENABLED) Retrieve the validity status from the parser context defined(LIBXML_READER_ENABLED) The local name of the node. defined(LIBXML_READER_ENABLED) Obtain the base URI for the given locator. defined(LIBXML_READER_ENABLED) Obtain the line number for the given locator. defined(LIBXML_READER_ENABLED) Resolves a namespace prefix in the scope of the current element. defined(LIBXML_READER_ENABLED) Moves the position of the current instance to the attribute with the specified qualified name. defined(LIBXML_READER_ENABLED) Moves the position of the current instance to the attribute with the specified index relative to the containing element. defined(LIBXML_READER_ENABLED) Moves the position of the current instance to the attribute with the specified local name and namespace URI. defined(LIBXML_READER_ENABLED) Moves the position of the current instance to the node that contains the current Attribute node. defined(LIBXML_READER_ENABLED) Moves the position of the current instance to the first attribute associated with the current node. defined(LIBXML_READER_ENABLED) Moves the position of the current instance to the next attribute associated with the current node. defined(LIBXML_READER_ENABLED) The qualified name of the node, equal to Prefix :LocalName. defined(LIBXML_READER_ENABLED) The URI defining the namespace associated with the node. defined(LIBXML_READER_ENABLED) Skip to the node following the current one in document order while avoiding the subtree if any. defined(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 defined(LIBXML_READER_ENABLED) Get the node type of the current node Reference: http://www.gnu.org/software/dotgnu/pnetlib-doc/System/Xml/XmlNodeType.html defined(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 behaviour of accepting out of range character entities like &#0; is of course not supported either. defined(LIBXML_READER_ENABLED) A shorthand reference to the namespace associated with the node. defined(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 defined(LIBXML_READER_ENABLED) && defined(LIBXML_PATTERN_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 defined(LIBXML_READER_ENABLED) The quotation mark character used to enclose the value of an attribute. defined(LIBXML_READER_ENABLED) Moves the position of the current instance to the next node in the stream, exposing its properties. defined(LIBXML_READER_ENABLED) Parses an attribute value into one or more Text and EntityReference nodes. defined(LIBXML_READER_ENABLED) && defined(LIBXML_WRITER_ENABLED) Reads the contents of the current node, including child nodes and markup. defined(LIBXML_READER_ENABLED) && defined(LIBXML_WRITER_ENABLED) Reads the contents of the current node, including child nodes and markup. defined(LIBXML_READER_ENABLED) Gets the read state of the reader. defined(LIBXML_READER_ENABLED) Reads the contents of an element or a text node as a string. defined(LIBXML_READER_ENABLED) && defined(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 deactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated. defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) Use RelaxNG schema to validate the document as it is processed. Activation is only possible before the first Read(). If @rng is NULL, then RelaxNG schema validation is deactivated. defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) Use RelaxNG schema context to validate the document as it is processed. Activation is only possible before the first Read(). If @ctxt is NULL, then RelaxNG schema validation is deactivated. defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read(). If @xsd is NULL, then XML Schema validation is deactivated. defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) Use W3C XSD schema context to validate the document as it is processed. Activation is only possible before the first Read(). If @ctxt is NULL, then XML Schema validation is deactivated. defined(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. defined(LIBXML_READER_ENABLED) Set the maximum amplification factor. See xmlCtxtSetMaxAmplification. defined(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. defined(LIBXML_READER_ENABLED) && defined(LIBXML_SCHEMAS_ENABLED) Use XSD Schema to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is NULL, then Schema validation is deactivated. The @schema should not be freed until the reader is deallocated or its use has been deactivated. defined(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. defined(LIBXML_READER_ENABLED) Setup an XML reader with new options defined(LIBXML_READER_ENABLED) Determine the standalone status of the document being read. defined(LIBXML_READER_ENABLED) Provides the text value of the node if present defined(LIBXML_READER_ENABLED) The xml:lang scope within which the node resides. defined(LIBXML_WRITER_ENABLED) End the current xml element. defined(LIBXML_WRITER_ENABLED) End an xml CDATA section. defined(LIBXML_WRITER_ENABLED) End the current xml comment. defined(LIBXML_WRITER_ENABLED) End an xml DTD. defined(LIBXML_WRITER_ENABLED) End an xml DTD attribute list. defined(LIBXML_WRITER_ENABLED) End an xml DTD element. defined(LIBXML_WRITER_ENABLED) End an xml DTD entity. defined(LIBXML_WRITER_ENABLED) End an xml document. All open elements are closed, and the content is flushed to the output. defined(LIBXML_WRITER_ENABLED) End the current xml element. defined(LIBXML_WRITER_ENABLED) End the current xml PI. defined(LIBXML_WRITER_ENABLED) Flush the output buffer. defined(LIBXML_WRITER_ENABLED) End the current xml element. Writes an end tag even if the element is empty defined(LIBXML_WRITER_ENABLED) Set indentation output. indent = 0 do not indentation. indent > 0 do indentation. defined(LIBXML_WRITER_ENABLED) Set string indentation. defined(LIBXML_WRITER_ENABLED) Set the character used for quoting attributes. defined(LIBXML_WRITER_ENABLED) Start an xml attribute. defined(LIBXML_WRITER_ENABLED) Start an xml attribute with namespace support. defined(LIBXML_WRITER_ENABLED) Start an xml CDATA section. defined(LIBXML_WRITER_ENABLED) Start an xml comment. defined(LIBXML_WRITER_ENABLED) Start an xml DTD. defined(LIBXML_WRITER_ENABLED) Start an xml DTD ATTLIST. defined(LIBXML_WRITER_ENABLED) Start an xml DTD element. defined(LIBXML_WRITER_ENABLED) Start an xml DTD ATTLIST. defined(LIBXML_WRITER_ENABLED) Start a new xml document defined(LIBXML_WRITER_ENABLED) Start an xml element. defined(LIBXML_WRITER_ENABLED) Start an xml element with namespace support. defined(LIBXML_WRITER_ENABLED) Start an xml PI. defined(LIBXML_WRITER_ENABLED) Write an xml attribute. defined(LIBXML_WRITER_ENABLED) Write an xml attribute. defined(LIBXML_WRITER_ENABLED) Write an base64 encoded xml text. defined(LIBXML_WRITER_ENABLED) Write a BinHex encoded xml text. defined(LIBXML_WRITER_ENABLED) Write an xml CDATA. defined(LIBXML_WRITER_ENABLED) Write an xml comment. defined(LIBXML_WRITER_ENABLED) Write a DTD. defined(LIBXML_WRITER_ENABLED) Write a DTD ATTLIST. defined(LIBXML_WRITER_ENABLED) Write a DTD element. defined(LIBXML_WRITER_ENABLED) Write a DTD entity. defined(LIBXML_WRITER_ENABLED) Write a DTD external entity. The entity must have been started with xmlTextWriterStartDTDEntity defined(LIBXML_WRITER_ENABLED) Write the contents of a DTD external entity. defined(LIBXML_WRITER_ENABLED) Write a DTD internal entity. defined(LIBXML_WRITER_ENABLED) Write a DTD entity. defined(LIBXML_WRITER_ENABLED) Write an xml element. defined(LIBXML_WRITER_ENABLED) Write an xml element with namespace support. defined(LIBXML_WRITER_ENABLED) Write a formatted xml attribute. defined(LIBXML_WRITER_ENABLED) Write a formatted xml attribute.with namespace support defined(LIBXML_WRITER_ENABLED) Write a formatted xml CDATA. defined(LIBXML_WRITER_ENABLED) Write an xml comment. defined(LIBXML_WRITER_ENABLED) Write a DTD with a formatted markup declarations part. defined(LIBXML_WRITER_ENABLED) Write a formatted DTD ATTLIST. defined(LIBXML_WRITER_ENABLED) Write a formatted DTD element. defined(LIBXML_WRITER_ENABLED) Write a formatted DTD internal entity. defined(LIBXML_WRITER_ENABLED) Write a formatted xml element. defined(LIBXML_WRITER_ENABLED) Write a formatted xml element with namespace support. defined(LIBXML_WRITER_ENABLED) Write a formatted PI. defined(LIBXML_WRITER_ENABLED) Write a formatted raw xml text. defined(LIBXML_WRITER_ENABLED) Write a formatted xml text. defined(LIBXML_WRITER_ENABLED) Write an xml PI. defined(LIBXML_WRITER_ENABLED) Write a raw xml text. defined(LIBXML_WRITER_ENABLED) Write an xml text. TODO: what about entities and special chars?? defined(LIBXML_WRITER_ENABLED) Write an xml text. defined(LIBXML_WRITER_ENABLED) Write a formatted xml attribute. defined(LIBXML_WRITER_ENABLED) Write a formatted xml attribute.with namespace support defined(LIBXML_WRITER_ENABLED) Write a formatted xml CDATA. defined(LIBXML_WRITER_ENABLED) Write an xml comment. defined(LIBXML_WRITER_ENABLED) Write a DTD with a formatted markup declarations part. defined(LIBXML_WRITER_ENABLED) Write a formatted DTD ATTLIST. defined(LIBXML_WRITER_ENABLED) Write a formatted DTD element. defined(LIBXML_WRITER_ENABLED) Write a formatted DTD internal entity. defined(LIBXML_WRITER_ENABLED) Write a formatted xml element. defined(LIBXML_WRITER_ENABLED) Write a formatted xml element with namespace support. defined(LIBXML_WRITER_ENABLED) Write a formatted xml PI. defined(LIBXML_WRITER_ENABLED) Write a formatted raw xml text. defined(LIBXML_WRITER_ENABLED) Write a formatted xml text. defined(LIBXML_OUTPUT_ENABLED) defined(LIBXML_OUTPUT_ENABLED) defined(LIBXML_OUTPUT_ENABLED) defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of AegeanNumbers UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of AlphabeticPresentationForms UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Arabic UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of ArabicPresentationForms-A UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of ArabicPresentationForms-B UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Armenian UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Arrows UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of BasicLatin UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Bengali UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of the UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of BlockElements UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Bopomofo UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of BopomofoExtended UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of BoxDrawing UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of BraillePatterns UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Buhid UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of ByzantineMusicalSymbols UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CJKCompatibility UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CJKCompatibilityForms UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CJKCompatibilityIdeographs UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CJKCompatibilityIdeographsSupplement UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CJKRadicalsSupplement UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CJKSymbolsandPunctuation UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CJKUnifiedIdeographs UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CJKUnifiedIdeographsExtensionA UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CJKUnifiedIdeographsExtensionB UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of the UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of C UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Cc UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Cf UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Co UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Cs UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of L UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Ll UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Lm UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Lo UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Lt UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Lu UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of M UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Mc UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Me UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Mn UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of N UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Nd UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Nl UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of No UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of P UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Pc UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Pd UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Pe UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Pf UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Pi UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Po UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Ps UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of S UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Sc UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Sk UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Sm UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of So UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Z UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Zl UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Zp UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Zs UCS Category defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Cherokee UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CombiningDiacriticalMarks UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CombiningDiacriticalMarksforSymbols UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CombiningHalfMarks UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CombiningMarksforSymbols UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of ControlPictures UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CurrencySymbols UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CypriotSyllabary UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Cyrillic UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of CyrillicSupplement UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Deseret UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Devanagari UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Dingbats UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of EnclosedAlphanumerics UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of EnclosedCJKLettersandMonths UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Ethiopic UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of GeneralPunctuation UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of GeometricShapes UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Georgian UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Gothic UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Greek UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of GreekExtended UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of GreekandCoptic UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Gujarati UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Gurmukhi UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of HalfwidthandFullwidthForms UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of HangulCompatibilityJamo UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of HangulJamo UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of HangulSyllables UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Hanunoo UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Hebrew UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of HighPrivateUseSurrogates UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of HighSurrogates UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Hiragana UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of IPAExtensions UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of IdeographicDescriptionCharacters UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Kanbun UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of KangxiRadicals UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Kannada UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Katakana UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of KatakanaPhoneticExtensions UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Khmer UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of KhmerSymbols UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Lao UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Latin-1Supplement UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of LatinExtended-A UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of LatinExtendedAdditional UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of LatinExtended-B UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of LetterlikeSymbols UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Limbu UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of LinearBIdeograms UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of LinearBSyllabary UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of LowSurrogates UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Malayalam UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of MathematicalAlphanumericSymbols UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of MathematicalOperators UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of MiscellaneousMathematicalSymbols-A UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of MiscellaneousMathematicalSymbols-B UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of MiscellaneousSymbols UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of MiscellaneousSymbolsandArrows UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of MiscellaneousTechnical UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Mongolian UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of MusicalSymbols UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Myanmar UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of NumberForms UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Ogham UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of OldItalic UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of OpticalCharacterRecognition UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Oriya UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Osmanya UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of PhoneticExtensions UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of PrivateUse UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of PrivateUseArea UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Runic UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Shavian UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Sinhala UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of SmallFormVariants UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of SpacingModifierLetters UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Specials UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of SuperscriptsandSubscripts UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of SupplementalArrows-A UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of SupplementalArrows-B UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of SupplementalMathematicalOperators UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of SupplementaryPrivateUseArea-A UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of SupplementaryPrivateUseArea-B UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Syriac UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Tagalog UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Tagbanwa UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Tags UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of TaiLe UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of TaiXuanJingSymbols UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Tamil UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Telugu UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Thaana UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Thai UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Tibetan UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of Ugaritic UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of UnifiedCanadianAboriginalSyllabics UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of VariationSelectors UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of VariationSelectorsSupplement UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of YiRadicals UCS Block defined(LIBXML_UNICODE_ENABLED) Check whether the character is part of YiSyllables UCS Block defined(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, A-Z, 0-9, "@-_.!~*'()") and the characters in the exception list. Unescaping routine, but does not check that the string is an URI. The output is a direct unsigned char translation of %XX values (no encoding) Note that the length of the result can only be smaller or same size as the input string. 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 the behaviour is not guaranteed if the input string is not UTF-8 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 If one need to free the node, use xmlFreeNode() routine after the unlink to discard it. Note that namespace nodes can't be unlinked as they do not have pointer to their parent. xmlUnlockLibrary() is used to release a re-entrant lock on the libxml2 library. defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) Remove an attribute carried by a node. defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) Remove an attribute carried by a node. This handles only attributes in no namespace. defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) (Re)Build the automata associated to the content model of this element defined(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 defined(LIBXML_VALID_ENABLED) Build/extend a list of potential children allowed by the content tree defined(LIBXML_VALID_ENABLED) 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. defined(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. defined(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 defined(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. defined(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. defined(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 defined(LIBXML_VALID_ENABLED) Try to validate the document against the dtd instance Basically it does check all the definitions in the DtD. Note the the internal subset (if present) is de-coupled (i.e. not used), which could give problems if ID or IDREF is present. defined(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. defined(LIBXML_VALID_ENABLED) Try to validate the subtree under an element defined(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 defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) Check that a value conforms to the lexical space of NMToken defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) Check that a value conforms to the lexical space of Name defined(LIBXML_VALID_ENABLED) Validate that the given value match Name production defined(LIBXML_VALID_ENABLED) Validate that the given value match Names production defined(LIBXML_VALID_ENABLED) Validate that the given value match Nmtoken production [ VC: Name Token ] defined(LIBXML_VALID_ENABLED) Validate that the given value match Nmtokens production [ VC: Name Token ] defined(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 ... defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) Validate that the given name match a notation declaration. - [ VC: Notation Declared ] defined(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 defined(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 defined(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 defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) Pop the element end from the validation stack. defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) check the CData parsed for validation in the current stack defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED) Push a new element start on the validation stack. defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) Check that a value conforms to the lexical space of QName defined(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. defined(LIBXML_XINCLUDE_ENABLED) Free an XInclude context defined(LIBXML_XINCLUDE_ENABLED) Creates a new XInclude context defined(LIBXML_XINCLUDE_ENABLED) Implement the XInclude substitution on the XML document @doc defined(LIBXML_XINCLUDE_ENABLED) Implement the XInclude substitution on the XML document @doc defined(LIBXML_XINCLUDE_ENABLED) Implement the XInclude substitution on the XML document @doc defined(LIBXML_XINCLUDE_ENABLED) Implement the XInclude substitution for the given subtree reusing the information and data coming from the given context. defined(LIBXML_XINCLUDE_ENABLED) Implement the XInclude substitution for the given subtree defined(LIBXML_XINCLUDE_ENABLED) Implement the XInclude substitution for the given subtree defined(LIBXML_XINCLUDE_ENABLED) Implement the XInclude substitution on the XML node @tree defined(LIBXML_XINCLUDE_ENABLED) Set the flags used for further processing of XML resources. defined(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. defined(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. defined(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 defined(LIBXML_XPATH_ENABLED) Converts a boolean to its number value defined(LIBXML_XPATH_ENABLED) Converts a boolean to its string value. defined(LIBXML_XPATH_ENABLED) Converts a node-set to its boolean value defined(LIBXML_XPATH_ENABLED) Converts a node-set to its number value defined(LIBXML_XPATH_ENABLED) Converts a node-set to its string value. defined(LIBXML_XPATH_ENABLED) Converts a node to its number value defined(LIBXML_XPATH_ENABLED) Converts a node to its string value. defined(LIBXML_XPATH_ENABLED) Converts a number to its boolean value defined(LIBXML_XPATH_ENABLED) Converts a number to its string value. defined(LIBXML_XPATH_ENABLED) Converts a string to its boolean value defined(LIBXML_XPATH_ENABLED) Converts a string to its number value defined(LIBXML_XPATH_ENABLED) Converts an XPath object to its boolean value defined(LIBXML_XPATH_ENABLED) Converts an XPath object to its number value defined(LIBXML_XPATH_ENABLED) Converts an existing object to its string() equivalent defined(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. defined(LIBXML_XPATH_ENABLED) Compare two nodes w.r.t document order defined(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. defined(LIBXML_XPATH_ENABLED) Compile an XPath expression defined(LIBXML_XPATH_ENABLED) Evaluate the Precompiled XPath expression in the given context. defined(LIBXML_XPATH_ENABLED) Applies the XPath boolean() function on the result of the given compiled expression. defined(LIBXML_XPATH_ENABLED) Implement the concat() XPath function string concat(string, string, string*) The concat function returns the concatenation of its arguments. defined(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. defined(LIBXML_XPATH_ENABLED) Creates/frees an object cache on the XPath context. If activates XPath objects (xmlXPathObject) will be cached internally to be reused. @options: 0: This will set the XPath object caching: @value: This will set the maximum number of XPath objects to be cached per slot There are 5 slots for: node-set, string, number, boolean, and misc objects. Use <0 for the default number (100). Other values for @options have currently no effect. defined(LIBXML_XPATH_ENABLED) Converts an existing object to its boolean() equivalent defined(LIBXML_XPATH_ENABLED) A conversion function is associated to a type and used to cast the new type to primitive values. defined(LIBXML_XPATH_ENABLED) Converts an existing object to its number() equivalent defined(LIBXML_XPATH_ENABLED) Converts an existing object to its string() equivalent defined(LIBXML_XPATH_ENABLED) Implement the count() XPath function number count(node-set) defined(LIBXML_XPATH_ENABLED) Compile an XPath expression defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_DEBUG_ENABLED) Dumps the tree of the compiled XPath expression. defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_DEBUG_ENABLED) Dump the content of the object for debugging purposes defined(LIBXML_XPATH_ENABLED) Implements the EXSLT - Sets difference() function: node-set set:difference (node-set, node-set) defined(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 defined(LIBXML_XPATH_ENABLED) Implements the EXSLT - Sets distinct() function: node-set set:distinct (node-set) defined(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. defined(LIBXML_XPATH_ENABLED) Implement the equal operation on XPath objects content: @arg1 == @arg2 defined(LIBXML_XPATH_ENABLED) Handle an XPath error defined(LIBXML_XPATH_ENABLED) Evaluate the XPath Location Path in the given context. defined(LIBXML_XPATH_ENABLED) Parse and evaluate an XPath expression in the given context, then push the result on the context stack defined(LIBXML_XPATH_ENABLED) Alias for xmlXPathEval(). defined(LIBXML_XPATH_ENABLED) An XPath evaluation function, the parameters are on the XPath context stack. defined(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. defined(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. defined(LIBXML_XPATH_ENABLED) Implement the false() XPath function boolean false() defined(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. defined(LIBXML_XPATH_ENABLED) Free up the memory allocated by @comp defined(LIBXML_XPATH_ENABLED) Free up an xmlXPathContext defined(LIBXML_XPATH_ENABLED) Free the NodeSet compound (not the actual nodes !). defined(LIBXML_XPATH_ENABLED) Free up the xmlXPathObjectPtr @obj but don't deallocate the objects in the list contrary to xmlXPathFreeObject(). defined(LIBXML_XPATH_ENABLED) Free up an xmlXPathObjectPtr object. defined(LIBXML_XPATH_ENABLED) Free up an xmlXPathParserContext defined(LIBXML_XPATH_ENABLED) Prototype for callbacks used to plug function lookup in the XPath engine. defined(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. defined(LIBXML_XPATH_ENABLED) Search in the Function array of the context for the given function. defined(LIBXML_XPATH_ENABLED) Search in the Function array of the context for the given function. defined(LIBXML_XPATH_ENABLED) Implements the EXSLT - Sets has-same-nodes function: boolean set:has-same-node(node-set, node-set) defined(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. defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) DEPRECATED: Alias for xmlInitParser. defined(LIBXML_XPATH_ENABLED) Implements the EXSLT - Sets intersection() function: node-set set:intersection (node-set, node-set) defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) Checks whether a double is an infinity. defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) Checks whether a double is a NaN. defined(LIBXML_XPATH_ENABLED) Is the name given a NodeType one. [38] NodeType ::= 'comment' | 'text' | 'processing-instruction' | 'node' defined(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 defined(LIBXML_XPATH_ENABLED) Implement the last() XPath function number last() The last function returns the number of nodes in the context node list. defined(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. defined(LIBXML_XPATH_ENABLED) Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) defined(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. defined(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. defined(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. defined(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. defined(LIBXML_XPATH_ENABLED) Create a new xmlXPathObjectPtr of type boolean and of value @val defined(LIBXML_XPATH_ENABLED) Create a new xmlXPathObjectPtr of type string and of value @val defined(LIBXML_XPATH_ENABLED) Create a new xmlXPathContext defined(LIBXML_XPATH_ENABLED) Create a new xmlXPathObjectPtr of type double and of value @val defined(LIBXML_XPATH_ENABLED) Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the single Node @val defined(LIBXML_XPATH_ENABLED) Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the Nodeset @val defined(LIBXML_XPATH_ENABLED) Create a new xmlXPathParserContext defined(LIBXML_XPATH_ENABLED) Create a new xmlXPathObjectPtr of type string and of value @val defined(LIBXML_XPATH_ENABLED) Create a new xmlXPathObjectPtr of type Value Tree (XSLT) and initialize it with the tree root @val defined(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 defined(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. defined(LIBXML_XPATH_ENABLED) Traversal function for the "attribute" direction TODO: support DTD inherited default attributes defined(LIBXML_XPATH_ENABLED) Traversal function for the "child" direction The child axis contains the children of the context node in document order. defined(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. defined(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 defined(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 defined(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. defined(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. defined(LIBXML_XPATH_ENABLED) Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one. defined(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 defined(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. defined(LIBXML_XPATH_ENABLED) Traversal function for the "self" direction The self axis contains just the context node itself defined(LIBXML_XPATH_ENABLED) Evaluate the XPath Location Path in the given context. The node 'node' is set as the context node. The context node is not restored. defined(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. defined(LIBXML_XPATH_ENABLED) Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) defined(LIBXML_XPATH_ENABLED) add a new xmlNodePtr to an existing NodeSet defined(LIBXML_XPATH_ENABLED) add a new namespace node to an existing NodeSet defined(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. defined(LIBXML_XPATH_ENABLED) checks whether @cur contains @val defined(LIBXML_XPATH_ENABLED) Create a new xmlNodeSetPtr of type double and of value @val defined(LIBXML_XPATH_ENABLED) Removes an xmlNodePtr from an existing NodeSet defined(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 defined(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 defined(LIBXML_XPATH_ENABLED) Removes an entry from an existing NodeSet list. defined(LIBXML_XPATH_ENABLED) Sort the node set in document order defined(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. defined(LIBXML_XPATH_ENABLED) Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) defined(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. defined(LIBXML_XPATH_ENABLED) Implement the equal operation on XPath objects content: @arg1 == @arg2 defined(LIBXML_XPATH_ENABLED) Implement the not() XPath function boolean not(boolean) The not function returns true if its argument is false, and false otherwise. defined(LIBXML_XPATH_ENABLED) Search in the namespace declaration array of the context for the given namespace name associated to the given prefix defined(LIBXML_XPATH_ENABLED) Implement the number() XPath function number number(object?) defined(LIBXML_XPATH_ENABLED) allocate a new copy of a given object defined(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. defined(LIBXML_XPATH_ENABLED) parse an XML namespace non qualified name. [NS 3] NCName ::= (Letter | '_') (NCNameChar)* [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender defined(LIBXML_XPATH_ENABLED) parse an XML name [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* defined(LIBXML_XPATH_ENABLED) Pops a boolean from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. defined(LIBXML_XPATH_ENABLED) Pops an external object from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. defined(LIBXML_XPATH_ENABLED) Pops a node-set from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. defined(LIBXML_XPATH_ENABLED) Pops a number from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. defined(LIBXML_XPATH_ENABLED) Pops a string from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. defined(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(). defined(LIBXML_XPATH_ENABLED) Registers all default XPath functions in this context defined(LIBXML_XPATH_ENABLED) Register a new function. If @f is NULL it unregisters the function defined(LIBXML_XPATH_ENABLED) Registers an external mechanism to do function lookup. defined(LIBXML_XPATH_ENABLED) Register a new function. If @f is NULL it unregisters the function defined(LIBXML_XPATH_ENABLED) Register a new namespace. If @ns_uri is NULL it unregisters the namespace defined(LIBXML_XPATH_ENABLED) Register a new variable value. If @value is NULL it unregisters the variable defined(LIBXML_XPATH_ENABLED) register an external mechanism to do variable lookup defined(LIBXML_XPATH_ENABLED) Register a new variable value. If @value is NULL it unregisters the variable defined(LIBXML_XPATH_ENABLED) Cleanup the XPath context data associated to registered functions defined(LIBXML_XPATH_ENABLED) Cleanup the XPath context data associated to registered variables defined(LIBXML_XPATH_ENABLED) Cleanup the XPath context data associated to registered variables defined(LIBXML_XPATH_ENABLED) Initialize the context to the root of the document defined(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 closest to positive infinity is returned. defined(LIBXML_XPATH_ENABLED) Sets 'node' as the context node. The node must be in the same document as that associated with the context. defined(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. defined(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. defined(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. defined(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. defined(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. defined(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. defined(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. defined(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 "" defined(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. defined(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. defined(LIBXML_XPATH_ENABLED) Implements the EXSLT - Sets trailing() function: node-set set:trailing (node-set, node-set) defined(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") defined(LIBXML_XPATH_ENABLED) Implement the true() XPath function boolean true() defined(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. defined(LIBXML_XPATH_ENABLED) Search in the Variable array of the context for the given variable value. defined(LIBXML_XPATH_ENABLED) Prototype for callbacks used to plug variable lookup in the XPath engine. defined(LIBXML_XPATH_ENABLED) Search in the Variable array of the context for the given variable value. defined(LIBXML_XPATH_ENABLED) Wraps a string into an XPath object. defined(LIBXML_XPATH_ENABLED) Wraps the @val data into an XPath object. defined(LIBXML_XPATH_ENABLED) Wrap the Nodeset @val in a new xmlXPathObjectPtr defined(LIBXML_XPATH_ENABLED) Wraps the @val string into an XPath object. defined(LIBXML_XPATH_ENABLED) Formats an error message. defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Build a node list tree copy of the XPointer result. This will drop Attributes and Namespace declarations. defined(LIBXML_XPTR_ENABLED) Evaluate the XPath Location Path in the given context. defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) [8] Predicate ::= '[' PredicateExpr ']' [9] PredicateExpr ::= Expr Evaluate a predicate as in xmlXPathEvalPredicate() but for a Location Set instead of a node set defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Free the LocationSet compound (not the actual ranges !). defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) add a new xmlXPathObjectPtr to an existing LocationSet If the location already exist in the set @val is freed. defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Create a new xmlLocationSetPtr of type double and of value @val defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Removes an xmlXPathObjectPtr from an existing LocationSet defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Merges two rangesets, all ranges from @val2 are added to @val1 defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Removes an entry from an existing LocationSet list. defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Create a new xmlXPathObjectPtr of type range using a single nodes defined(LIBXML_XPTR_ENABLED) Create a new XPointer context defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Create a new xmlXPathObjectPtr of type LocationSet and initialize it with all the nodes from @set defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Create a new xmlXPathObjectPtr of type LocationSet and initialize it with the single range made of the two nodes @start and @end defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Create a new xmlXPathObjectPtr of type range defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Create a new xmlXPathObjectPtr of type range from a not to an object defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Create a new xmlXPathObjectPtr of type range from a node to a point defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Create a new xmlXPathObjectPtr of type range using 2 nodes defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Create a new xmlXPathObjectPtr of type range from a point to a node defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Create a new xmlXPathObjectPtr of type range using 2 Points defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Implement the range-to() XPointer function Obsolete. range-to is not a real function but a special type of location step which is handled in xpath.c. defined(LIBXML_XPTR_ENABLED) && defined(LIBXML_XPTR_LOCS_ENABLED) Wrap the LocationSet @val in a new xmlXPathObjectPtr