frofis wrote:
You could use the xml-security library which provide canonicalization
facility for the xerces-c DOMDocument.
Thanks and as it will look in a code
This piece of code is from xml-security c14n tool source code:
XSECC14n20010315 canon(theDOM);
char buffer[512];
int res = canon.outputBuffer((unsigned char *) buffer, 128);
while (res != 0) {
buffer[res] = '\0';
cout << buffer;
res = canon.outputBuffer((unsigned char *) buffer, 128);
}
Please use xml-security source code and documentation for further
details and xml-security mail lists for asking questions about it.
Good luck!
Vitaly