typedef struct _xmlC14NVisibleNsStack {
int nsCurEnd; /* number of nodes in the set */
- int nsPrevStart; /* the begginning of the stack for previous visible node */
+ int nsPrevStart; /* the beginning of the stack for previous visible node */
int nsPrevEnd; /* the end of the stack for previous visible node */
int nsMax; /* size of the array as allocated */
xmlNsPtr *nsTab; /* array of ns in no particular order */
* xmlC14NErr:
* @ctxt: a C14N evaluation context
* @node: the context node
- * @error: the erorr code
+ * @error: the error code
* @msg: the message
* @extra: extra informations
*
}
/*
- * Set "mode" flag and remember list of incluseve prefixes
+ * Set "mode" flag and remember list of inclusive prefixes
* for exclusive c14n
*/
ctx->mode = mode;
(void) xmlOutputBufferClose(buf);
if ((*doc_txt_ptr == NULL) && (ret > 0)) {
- xmlC14NErrMemory("coping canonicanized document");
+ xmlC14NErrMemory("coping canonicalized document");
return (-1);
}
return (ret);
* 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):
+ * @compression: the compression level (zlib required):
* -1 - libxml default,
* 0 - uncompressed,
* >0 - compression level
ret = xmlC14NDocSaveTo(doc, nodes, mode, inclusive_ns_prefixes,
with_comments, buf);
if (ret < 0) {
- xmlC14NErrInternal("cannicanize document to buffer");
+ xmlC14NErrInternal("canonize document to buffer");
(void) xmlOutputBufferClose(buf);
return (-1);
}