From d09ab089457ae3c20cc98f9afa03379c6ebf9598 Mon Sep 17 00:00:00 2001
From: Mike Hommey
dict: | the dictionnary |
Returns: | the number of elements in the dictionnary or -1 in case of error |
int xmlInitializeDict (void)
-
Do the dictionary mutex initialization. this function is not thread safe, initialization should preferably be done once at startup
+Do the dictionary mutex initialization. this function is deprecated
Returns: | 0 if initialization was already done, and 1 if that call led to the initialization |
int xmlRelaxNGValidatePushCData (xmlRelaxNGValidCtxtPtr ctxt,
const xmlChar * data,
int len)
check the CData parsed for validation in the current stack
-ctxt: | the RelaxNG validation context |
data: | some character data read |
len: | the lenght of the data |
Returns: | 1 if no validation problem was found or -1 otherwise |
ctxt: | the RelaxNG validation context |
data: | some character data read |
len: | the length of the data |
Returns: | 1 if no validation problem was found or -1 otherwise |
int xmlRelaxNGValidatePushElement (xmlRelaxNGValidCtxtPtr ctxt,
xmlDocPtr doc,
xmlNodePtr elem)
Push a new element start on the RelaxNG validation stack.
diff --git a/doc/devhelp/libxml2-tree.html b/doc/devhelp/libxml2-tree.html index ca76d03..90c3903 100644 --- a/doc/devhelp/libxml2-tree.html +++ b/doc/devhelp/libxml2-tree.html @@ -812,6 +812,7 @@ The content of this structure is not made public by the API. int nodeInfoMax : Max depth of the parsing stack xmlParserNodeInfo * nodeInfoTab : array of nodeInfos int input_id : we need to label inputs + unsigned long sizeentcopy : volume of entity copy } xmlParserCtxt;const xmlChar * xmlSplitQName3 (const xmlChar * name,
int * len)
parse an XML qualified name string,i
-name: | the full QName |
len: | an int * |
Returns: | NULL if it is not a Qualified Name, otherwise, update len with the lenght in byte of the prefix and return a pointer to the start of the name without the prefix |
name: | the full QName |
len: | an int * |
Returns: | NULL if it is not a Qualified Name, otherwise, update len with the length in byte of the prefix and return a pointer to the start of the name without the prefix |
xmlNodePtr xmlStringGetNodeList (xmlDocPtr doc,
const xmlChar * value)
Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs.
diff --git a/doc/devhelp/libxml2-valid.html b/doc/devhelp/libxml2-valid.html index 3480214..fcb68e7 100644 --- a/doc/devhelp/libxml2-valid.html +++ b/doc/devhelp/libxml2-valid.html @@ -512,7 +512,7 @@ The content of this structure is not made public by the API.int xmlValidatePushCData (xmlValidCtxtPtr ctxt,
const xmlChar * data,
int len)
check the CData parsed for validation in the current stack
-ctxt: | the validation context |
data: | some character data read |
len: | the lenght of the data |
Returns: | 1 if no validation problem was found or 0 otherwise |
ctxt: | the validation context |
data: | some character data read |
len: | the length of the data |
Returns: | 1 if no validation problem was found or 0 otherwise |
int xmlValidatePushElement (xmlValidCtxtPtr ctxt,
xmlDocPtr doc,
xmlNodePtr elem,
const xmlChar * qname)
Push a new element start on the validation stack.
diff --git a/doc/devhelp/libxml2-xmlerror.html b/doc/devhelp/libxml2-xmlerror.html index 4ebaa60..27f7836 100644 --- a/doc/devhelp/libxml2-xmlerror.html +++ b/doc/devhelp/libxml2-xmlerror.html @@ -252,6 +252,7 @@ void xmlResetError (XML_ERR_UNKNOWN_VERSION = 108 /* 108 */ XML_ERR_VERSION_MISMATCH = 109 /* 109 */ XML_ERR_NAME_TOO_LONG = 110 /* 110 */ + XML_ERR_USER_STOP = 111 /* 111 */ XML_NS_ERR_XML_NAMESPACE = 200 XML_NS_ERR_UNDEFINED_NAMESPACE = 201 /* 201 */ XML_NS_ERR_QNAME = 202 /* 202 */ diff --git a/doc/devhelp/libxml2-xmlregexp.html b/doc/devhelp/libxml2-xmlregexp.html index 4d11966..9427a34 100644 --- a/doc/devhelp/libxml2-xmlregexp.html +++ b/doc/devhelp/libxml2-xmlregexp.html @@ -180,11 +180,11 @@ The content of this structure is not made public by the API.int xmlExpGetLanguage (xmlExpCtxtPtr ctxt,
xmlExpNodePtr exp,
const xmlChar ** langList,
int len)
Find all the strings used in @exp and store them in @list
-ctxt: | the expression context |
exp: | the expression |
langList: | where to store the tokens |
len: | the allocated lenght of @list |
Returns: | the number of unique strings found, -1 in case of errors and -2 if there is more than @len strings |
ctxt: | the expression context |
exp: | the expression |
langList: | where to store the tokens |
len: | the allocated length of @list |
Returns: | the number of unique strings found, -1 in case of errors and -2 if there is more than @len strings |
int xmlExpGetStart (xmlExpCtxtPtr ctxt,
xmlExpNodePtr exp,
const xmlChar ** tokList,
int len)
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]
-ctxt: | the expression context |
exp: | the expression |
tokList: | where to store the tokens |
len: | the allocated lenght of @list |
Returns: | the number of unique strings found, -1 in case of errors and -2 if there is more than @len strings |
ctxt: | the expression context |
exp: | the expression |
tokList: | where to store the tokens |
len: | the allocated length of @list |
Returns: | the number of unique strings found, -1 in case of errors and -2 if there is more than @len strings |
int xmlExpIsNillable (xmlExpNodePtr exp)
Finds if the expression is nillable, i.e. if it accepts the empty sequqnce
@@ -196,7 +196,7 @@ The content of this structure is not made public by the API.xmlExpNodePtr xmlExpNewAtom (xmlExpCtxtPtr ctxt,
const xmlChar * name,
int len)
Get the atom associated to this name from that context
-ctxt: | the expression context |
name: | the atom name |
len: | the atom name lenght in byte (or -1); |
Returns: | the node or NULL in case of error |
ctxt: | the expression context |
name: | the atom name |
len: | the atom name length in byte (or -1); |
Returns: | the node or NULL in case of error |
xmlExpCtxtPtr xmlExpNewCtxt (int maxNodes,
xmlDictPtr dict)
Creates a new context for manipulating expressions
diff --git a/doc/devhelp/libxml2-xmlversion.html b/doc/devhelp/libxml2-xmlversion.html index 69a04e2..8178614 100644 --- a/doc/devhelp/libxml2-xmlversion.html +++ b/doc/devhelp/libxml2-xmlversion.html @@ -83,6 +83,7 @@ #define DEBUG_MEMORY_LOCATION; #define LIBXML_ATTR_FORMAT; #define LIBXML_TEST_VERSION; +#define LIBXML_THREAD_ALLOC_ENABLED; #define LIBXML_XPATH_ENABLED; #define LIBXML_PATTERN_ENABLED; #define LIBXML_VALID_ENABLED; @@ -219,6 +220,10 @@ void xmlCheckVersion (int version);#define LIBXML_TEST_VERSION;
Macro to check that the libxml version in use is compatible with the version the software has been compiled against
+#define LIBXML_THREAD_ALLOC_ENABLED; +
Whether the allocation hooks are per-thread
#define LIBXML_THREAD_ENABLED; diff --git a/doc/devhelp/libxml2-xpath.html b/doc/devhelp/libxml2-xpath.html index d2a0afc..640c715 100644 --- a/doc/devhelp/libxml2-xpath.html +++ b/doc/devhelp/libxml2-xpath.html @@ -70,6 +70,7 @@ typedef xmlXPathAxis * xmlXPathParserContext; int xmlXPathCastNodeSetToBoolean (xmlNodeSetPtr ns); typedef xmlXPathFunction xmlXPathFuncLookupFunc (void * ctxt,
const xmlChar * name,
const xmlChar * ns_uri); +xmlXPathObjectPtr xmlXPathNodeEval (xmlNodePtr node,
const xmlChar * str,
xmlXPathContextPtr ctx); xmlChar * xmlXPathCastNodeToString (xmlNodePtr node); int xmlXPathIsNaN (double val); int xmlXPathContextSetCache (xmlXPathContextPtr ctxt,
int active,
int value,
int options); @@ -104,6 +105,7 @@ int xmlXPathCmpNodes (xmlXPathCompExprPtr xmlXPathCtxtCompile (xmlXPathContextPtr ctxt,
const xmlChar * str); typedef void xmlXPathEvalFunc (xmlXPathParserContextPtr ctxt,
int nargs); xmlChar * xmlXPathCastBooleanToString (int val); +int xmlXPathSetContextNode (xmlNodePtr node,
xmlXPathContextPtr ctx); int xmlXPathCastNumberToBoolean (double val); void xmlXPathFreeNodeSet (xmlNodeSetPtr obj); void xmlXPathFreeCompExpr (xmlXPathCompExprPtr comp); @@ -513,6 +515,10 @@ The content of this structure is not made public by the API.+xmlXPathNewContext ()
xmlXPathContextPtr xmlXPathNewContext (xmlDocPtr doc)
Create a new xmlXPathContext
doc: the XML document Returns: the xmlXPathContext just allocated. The caller will need to free it.
+xmlXPathNodeEval ()
xmlXPathObjectPtr xmlXPathNodeEval (xmlNodePtr node,
const xmlChar * str,
xmlXPathContextPtr ctx)
+Evaluate the XPath Location Path in the given context. The node 'node' is set as the context node. The context node is not restored.
+
node: the node to to use as the context node str: the XPath expression ctx: the XPath context Returns: the xmlXPathObjectPtr resulting from the evaluation or NULL. the caller has to free the object.
xmlXPathNodeSetCreate ()
xmlNodeSetPtr xmlXPathNodeSetCreate (xmlNodePtr val)
Create a new xmlNodeSetPtr of type double and of value @val
@@ -526,6 +532,10 @@ The content of this structure is not made public by the API.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.
doc: an input document Returns: the number of elements found in the document or -1 in case of error.
++xmlXPathSetContextNode ()
int xmlXPathSetContextNode (xmlNodePtr node,
xmlXPathContextPtr ctx)
+Sets 'node' as the context node. The node must be in the same document as that associated with the context.
+
node: the node to to use as the context node ctx: the XPath context Returns: -1 in case of error or 0 if successful