http://swpat.ffii.org/Action against software patents http://www.gnome.org/Gnome2 Logo http://www.w3.org/StatusW3C Logo http://www.redhat.com/Red Hat Logo http://xmlsoft.org/Made with Libxml2 Logo 
Module c14n from libxml2
API Menu ../index.htmlMain Menu ../docs.htmlDeveloper Menu ../examples/index.htmlCode Examples index.htmlAPI Menu libxml-parser.htmlParser API libxml-tree.htmlTree API libxml-xmlreader.htmlReader API ../guidelines.htmlXML Guidelines ../ChangeLog.htmlChangeLog API Indexes ../APIchunk0.htmlAlphabetic ../APIconstructors.htmlConstructors ../APIfunctions.htmlFunctions/Types ../APIfiles.htmlModules ../APIsymbols.htmlSymbols Related links http://mail.gnome.org/archives/xml/Mail archive http://xmlsoft.org/XSLT/XSLT libxslt http://phd.cs.unibo.it/gdome2/DOM gdome2 http://www.aleksey.com/xmlsec/XML-DSig xmlsec ftp://xmlsoft.org/FTP http://www.zlatkovic.com/projects/libxml/Windows binaries http://www.blastwave.org/packages.php/libxml2Solaris binaries http://www.explain.com.au/oss/libxml2xslt.htmlMacOsX binaries http://libxmlplusplus.sourceforge.net/C++ bindings http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4PHP bindings http://sourceforge.net/projects/libxml2-pas/Pascal bindings http://rubyforge.org/projects/xml-tools/Ruby bindings http://tclxml.sourceforge.net/Tcl bindings http://bugzilla.gnome.org/buglist.cgi?product=libxml2Bug Tracker libxml-SAX2.htmlPrev libxml-SAX2.htmlSAX2 index.htmlUp index.htmlAPI documentation ../index.htmlHome ../index.htmlThe XML C parser and toolkit of Gnome libxml-catalog.htmlcatalog libxml-catalog.htmlNext the c14n modules provides a  "Canonical XML" implementation
Table of Contents
int	#xmlC14NDocDumpMemoryxmlC14NDocDumpMemory 		( libxml-tree.html#xmlDocPtrxmlDocPtr  doc, 					 libxml-xpath.html#xmlNodeSetPtrxmlNodeSetPtr  nodes, 					 int exclusive, 					 libxml-xmlstring.html#xmlCharxmlChar  ** inclusive_ns_prefixes, 					 int with_comments, 					 libxml-xmlstring.html#xmlCharxmlChar  ** doc_txt_ptr)int	#xmlC14NDocSavexmlC14NDocSave 			( libxml-tree.html#xmlDocPtrxmlDocPtr  doc, 					 libxml-xpath.html#xmlNodeSetPtrxmlNodeSetPtr  nodes, 					 int exclusive, 					 libxml-xmlstring.html#xmlCharxmlChar  ** inclusive_ns_prefixes, 					 int with_comments, 					 const char * filename, 					 int compression)int	#xmlC14NDocSaveToxmlC14NDocSaveTo 		( libxml-tree.html#xmlDocPtrxmlDocPtr  doc, 					 libxml-xpath.html#xmlNodeSetPtrxmlNodeSetPtr  nodes, 					 int exclusive, 					 libxml-xmlstring.html#xmlCharxmlChar  ** inclusive_ns_prefixes, 					 int with_comments, 					 libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  buf)int	#xmlC14NExecutexmlC14NExecute 			( libxml-tree.html#xmlDocPtrxmlDocPtr  doc, 					 libxml-c14n.html#xmlC14NIsVisibleCallbackxmlC14NIsVisibleCallback  is_visible_callback, 					 void * user_data, 					 int exclusive, 					 libxml-xmlstring.html#xmlCharxmlChar  ** inclusive_ns_prefixes, 					 int with_comments, 					 libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  buf)Function type: #xmlC14NIsVisibleCallbackxmlC14NIsVisibleCallback int	
#xmlC14NIsVisibleCallbackxmlC14NIsVisibleCallback 	(void * user_data, 					 libxml-tree.html#xmlNodePtrxmlNodePtr  node, 					 libxml-tree.html#xmlNodePtrxmlNodePtr  parent)
Description
Function: xmlC14NDocDumpMemory
int	xmlC14NDocDumpMemory		( libxml-tree.html#xmlDocPtrxmlDocPtr  doc, 					 libxml-xpath.html#xmlNodeSetPtrxmlNodeSetPtr  nodes, 					 int exclusive, 					 libxml-xmlstring.html#xmlCharxmlChar  ** inclusive_ns_prefixes, 					 int with_comments, 					 libxml-xmlstring.html#xmlCharxmlChar  ** doc_txt_ptr)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)
doc: the XML document for canonization nodes: the nodes set to be included in the canonized image or NULL if all document nodes should be included exclusive: the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization) inclusive_ns_prefixes: the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise) with_comments: include comments in the result (!=0) or not (==0) doc_txt_ptr: the memory pointer for allocated canonical XML text; the caller of this functions is responsible for calling xmlFree() to free allocated memory Returns: the number of bytes written on success or a negative value on fail Function: xmlC14NDocSave
int	xmlC14NDocSave			( libxml-tree.html#xmlDocPtrxmlDocPtr  doc, 					 libxml-xpath.html#xmlNodeSetPtrxmlNodeSetPtr  nodes, 					 int exclusive, 					 libxml-xmlstring.html#xmlCharxmlChar  ** inclusive_ns_prefixes, 					 int with_comments, 					 const char * filename, 					 int compression)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)
doc: the XML document for canonization nodes: the nodes set to be included in the canonized image or NULL if all document nodes should be included exclusive: the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization) inclusive_ns_prefixes: the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise) with_comments: include comments in the result (!=0) or not (==0) filename: the filename to store canonical XML image compression: the compression level (zlib requred): -1 - libxml default, 0 - uncompressed, >0 - compression level Returns: the number of bytes written success or a negative value on fail Function: xmlC14NDocSaveTo
int	xmlC14NDocSaveTo		( libxml-tree.html#xmlDocPtrxmlDocPtr  doc, 					 libxml-xpath.html#xmlNodeSetPtrxmlNodeSetPtr  nodes, 					 int exclusive, 					 libxml-xmlstring.html#xmlCharxmlChar  ** inclusive_ns_prefixes, 					 int with_comments, 					 libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  buf)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)
doc: the XML document for canonization nodes: the nodes set to be included in the canonized image or NULL if all document nodes should be included exclusive: the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization) inclusive_ns_prefixes: the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise) with_comments: include comments in the result (!=0) or not (==0) buf: the output buffer to store canonical XML; this buffer MUST have encoder==NULL because C14N requires UTF-8 output Returns: non-negative value on success or a negative value on fail Function: xmlC14NExecute
int	xmlC14NExecute			( libxml-tree.html#xmlDocPtrxmlDocPtr  doc, 					 libxml-c14n.html#xmlC14NIsVisibleCallbackxmlC14NIsVisibleCallback  is_visible_callback, 					 void * user_data, 					 int exclusive, 					 libxml-xmlstring.html#xmlCharxmlChar  ** inclusive_ns_prefixes, 					 int with_comments, 					 libxml-tree.html#xmlOutputBufferPtrxmlOutputBufferPtr  buf)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)
doc: the XML document for canonization is_visible_callback: the function to use to determine is node visible or not user_data: the first parameter for @is_visible_callback function (in most cases, it is nodes set) exclusive: the exclusive flag (0 - non-exclusive canonicalization; otherwise - exclusive canonicalization) inclusive_ns_prefixes: the list of inclusive namespace prefixes ended with a NULL or NULL if there is no inclusive namespaces (only for exclusive canonicalization, ignored otherwise) with_comments: include comments in the result (!=0) or not (==0) buf: the output buffer to store canonical XML; this buffer MUST have encoder==NULL because C14N requires UTF-8 output Returns: non-negative value on success or a negative value on fail Function type: xmlC14NIsVisibleCallback
Function type: xmlC14NIsVisibleCallback
int	xmlC14NIsVisibleCallback	(void * user_data, 
					 libxml-tree.html#xmlNodePtrxmlNodePtr  node, 					 libxml-tree.html#xmlNodePtrxmlNodePtr  parent)
user_data: node: parent: Returns: ../bugs.htmlDaniel Veillard 
