http://swpat.ffii.org/
Action against software patents
http://www.gnome.org/
Gnome2 Logo
http://www.w3.org/Status
W3C Logo
http://www.redhat.com/
Red Hat Logo
http://xmlsoft.org/
Made with Libxml2 Logo
Module c14n from libxml2
API Menu
../index.html
Main Menu
../docs.html
Developer Menu
../examples/index.html
Code Examples
index.html
API Menu
libxml-parser.html
Parser API
libxml-tree.html
Tree API
libxml-xmlreader.html
Reader API
../guidelines.html
XML Guidelines
../ChangeLog.html
ChangeLog
API Indexes
../APIchunk0.html
Alphabetic
../APIconstructors.html
Constructors
../APIfunctions.html
Functions/Types
../APIfiles.html
Modules
../APIsymbols.html
Symbols
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/libxml2
Solaris binaries
http://www.explain.com.au/oss/libxml2xslt.html
MacOsX binaries
http://libxmlplusplus.sourceforge.net/
C++ bindings
http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4
PHP 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=libxml2
Bug Tracker
libxml-SAX2.html
Prev
libxml-SAX2.html
SAX2
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
The XML C parser and toolkit of Gnome
libxml-catalog.html
catalog
libxml-catalog.html
Next
the c14n modules provides a  "Canonical XML" implementation
Table of Contents
int
#xmlC14NDocDumpMemory
xmlC14NDocDumpMemory
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-xpath.html#xmlNodeSetPtr
xmlNodeSetPtr
nodes,
int exclusive,
libxml-xmlstring.html#xmlChar
xmlChar
** inclusive_ns_prefixes,
int with_comments,
libxml-xmlstring.html#xmlChar
xmlChar
** doc_txt_ptr)
int
#xmlC14NDocSave
xmlC14NDocSave
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-xpath.html#xmlNodeSetPtr
xmlNodeSetPtr
nodes,
int exclusive,
libxml-xmlstring.html#xmlChar
xmlChar
** inclusive_ns_prefixes,
int with_comments,
const char * filename,
int compression)
int
#xmlC14NDocSaveTo
xmlC14NDocSaveTo
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-xpath.html#xmlNodeSetPtr
xmlNodeSetPtr
nodes,
int exclusive,
libxml-xmlstring.html#xmlChar
xmlChar
** inclusive_ns_prefixes,
int with_comments,
libxml-tree.html#xmlOutputBufferPtr
xmlOutputBufferPtr
buf)
int
#xmlC14NExecute
xmlC14NExecute
(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-c14n.html#xmlC14NIsVisibleCallback
xmlC14NIsVisibleCallback
is_visible_callback,
void * user_data,
int exclusive,
libxml-xmlstring.html#xmlChar
xmlChar
** inclusive_ns_prefixes,
int with_comments,
libxml-tree.html#xmlOutputBufferPtr
xmlOutputBufferPtr
buf)
Function type:
#xmlC14NIsVisibleCallback
xmlC14NIsVisibleCallback
int
#xmlC14NIsVisibleCallback
xmlC14NIsVisibleCallback
(void * user_data,
libxml-tree.html#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlNodePtr
xmlNodePtr
parent)
Description
Function: xmlC14NDocDumpMemory
int	xmlC14NDocDumpMemory		(
libxml-tree.html#xmlDocPtr
xmlDocPtr
doc,
libxml-xpath.html#xmlNodeSetPtr
xmlNodeSetPtr
nodes,
int exclusive,
libxml-xmlstring.html#xmlChar
xmlChar
** inclusive_ns_prefixes,
int with_comments,
libxml-xmlstring.html#xmlChar
xmlChar
** 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#xmlDocPtr
xmlDocPtr
doc,
libxml-xpath.html#xmlNodeSetPtr
xmlNodeSetPtr
nodes,
int exclusive,
libxml-xmlstring.html#xmlChar
xmlChar
** 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#xmlDocPtr
xmlDocPtr
doc,
libxml-xpath.html#xmlNodeSetPtr
xmlNodeSetPtr
nodes,
int exclusive,
libxml-xmlstring.html#xmlChar
xmlChar
** inclusive_ns_prefixes,
int with_comments,
libxml-tree.html#xmlOutputBufferPtr
xmlOutputBufferPtr
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#xmlDocPtr
xmlDocPtr
doc,
libxml-c14n.html#xmlC14NIsVisibleCallback
xmlC14NIsVisibleCallback
is_visible_callback,
void * user_data,
int exclusive,
libxml-xmlstring.html#xmlChar
xmlChar
** inclusive_ns_prefixes,
int with_comments,
libxml-tree.html#xmlOutputBufferPtr
xmlOutputBufferPtr
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#xmlNodePtr
xmlNodePtr
node,
libxml-tree.html#xmlNodePtr
xmlNodePtr
parent)
user_data
:
node
:
parent
:
Returns
:
../bugs.html
Daniel Veillard
