Re: [xml] c14n: "xmlns:xml" is removed




The problem is, I have code that generated checksums of XML documents by
hashing the c14n result.  Now this c14n result of my documents changed and
so the checksums differ...  Therefore it would be nice if I could add the
"xmlns:xml" manually before calculating my checksums.

1) If you had xmlns:xml in the output then you did not hash "c14n
result" :) c14n spec has nothing to do with what you did hash.

2) There is no easy way to add xmlns:xml to the c14n output produced
by libxml2. However, you can go ahead and hack libxml2 sources
and then it will produce what you want. But it will not be c14n and
you might have big problems with compatibility in the future.


Best,
Aleksey




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]