--- embedaddon/libxml2/doc/devhelp/libxml2-tree.html 2012/02/21 23:37:59 1.1 +++ embedaddon/libxml2/doc/devhelp/libxml2-tree.html 2013/07/22 01:22:25 1.1.1.2 @@ -111,6 +111,7 @@ void xmlBufferWriteCHAR< xmlChar * xmlNodeGetBase (xmlDocPtr doc,
xmlNodePtr cur); void xmlBufferEmpty (xmlBufferPtr buf); xmlChar * xmlBuildQName (const xmlChar * ncname,
const xmlChar * prefix,
xmlChar * memory,
int len); +int xmlValidateNMToken (const xmlChar * value,
int space); int xmlSaveFormatFileEnc (const char * filename,
xmlDocPtr cur,
const char * encoding,
int format); xmlNodePtr xmlAddSibling (xmlNodePtr cur,
xmlNodePtr elem); xmlBufferPtr xmlBufferCreate (void); @@ -205,7 +206,7 @@ int xmlGetDocCompress void xmlFreeNode (xmlNodePtr cur); xmlAttrPtr xmlNewNsProp (xmlNodePtr node,
xmlNsPtr ns,
const xmlChar * name,
const xmlChar * value); void xmlDOMWrapFreeCtxt (xmlDOMWrapCtxtPtr ctxt); -int xmlValidateNMToken (const xmlChar * value,
int space); +xmlChar * xmlBufferDetach (xmlBufferPtr buf); void xmlBufferSetAllocationScheme (xmlBufferPtr buf,
xmlBufferAllocationScheme scheme); xmlNodePtr xmlNewChild (xmlNodePtr parent,
xmlNsPtr ns,
const xmlChar * name,
const xmlChar * content); xmlNsPtr xmlSearchNs (xmlDocPtr doc,
xmlNodePtr node,
const xmlChar * nameSpace); @@ -384,7 +385,8 @@ void xmlFreeNsList (XML_BUFFER_ALLOC_DOUBLEIT = 1 /* double each time one need to grow */ XML_BUFFER_ALLOC_EXACT = 2 /* grow only to the minimal size */ XML_BUFFER_ALLOC_IMMUTABLE = 3 /* immutable buffer */ - XML_BUFFER_ALLOC_IO = 4 /* special allocation scheme used for I/O */ + XML_BUFFER_ALLOC_IO = 4 /* special allocation scheme used for I/O */ + XML_BUFFER_ALLOC_HYBRID = 5 /* exact up to a threshold, and doubleit thereafter */ };

@@ -786,6 +788,7 @@ void xmlFreeNsList (xmlParserNodeInfo * nodeInfoTab : array of nodeInfos + int input_id : we need to label inputs } xmlParserCtxt;

@@ -964,6 +967,10 @@ void xmlFreeNsList (

routine to create an XML buffer from an immutable memory area. The area won't be modified nor copied, and is expected to be present until the end of the buffer lifetime.

mem:the memory area
size:the size in byte
Returns:the new structure.

+

xmlBufferDetach ()

xmlChar *	xmlBufferDetach		(xmlBufferPtr buf)
+

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.

+
buf:the buffer
Returns:the previous string contained by the buffer.
+

xmlBufferDump ()

int	xmlBufferDump			(FILE * file, 
xmlBufferPtr buf)

Dumps an XML buffer to a FILE *.

file:the file output
buf:the buffer to dump
Returns:the number of #xmlChar written
@@ -1157,7 +1164,7 @@ void xmlFreeNsList (
cur:the first property in the list

xmlGetBufferAllocationScheme ()

xmlBufferAllocationScheme	xmlGetBufferAllocationScheme	(void)
-

Types are XML_BUFFER_ALLOC_EXACT - use exact sizes, keeps memory usage down XML_BUFFER_ALLOC_DOUBLEIT - double buffer when extra needed, improves performance

+

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.

Returns:the current allocation scheme

xmlGetCompressMode ()

int	xmlGetCompressMode		(void)
@@ -1509,7 +1516,7 @@ void
xmlFreeNsList (
first:the first text node
second:the second text node being merged
Returns:the first text node augmented

xmlUnlinkNode ()

void	xmlUnlinkNode			(xmlNodePtr cur)
-

Unlink a node from it's current context, the node is not freed

+

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.

cur:the node

xmlUnsetNsProp ()

int	xmlUnsetNsProp			(xmlNodePtr node, 
xmlNsPtr ns,
const xmlChar * name)