Re: [xml] Need help on normalization/canonicalization with namespace prefix rewrite

2018-01-30 Thread Mikhail Goloborodko
Hi Alexey, I'm trying to get canonicalized xml (not according to standard) text to sign it. I need to rewrite namespace prefixes for that. I modified c14n.c to meet my certain requirements - it is suitable for my particular rules. I included examples of xml i need in my previous emails. So I

Re: [xml] Need help on normalization/canonicalization with namespace prefix rewrite

2018-01-29 Thread Aleksey Sanin
I don't understand what are you trying to do so I really don't have a good answer for you. Aleksey On 1/29/18 12:33 AM, Mikhail Goloborodko wrote: > Alexey, > > Thank you! > I'am new to libxml2. Would appretiate if you advice how to achieve this. > May be I need a callback for in Reader or

Re: [xml] Need help on normalization/canonicalization with namespace prefix rewrite

2018-01-29 Thread Mikhail Goloborodko
Alexey, Thank you! I'am new to libxml2. Would appretiate if you advice how to achieve this. May be I need a callback for in Reader or Writer? Mikhail On Sun, Jan 28, 2018 at 10:02 PM, Aleksey Sanin wrote: > I am not sure what is the suggest algorithm to "rewrite namespace

Re: [xml] Need help on normalization/canonicalization with namespace prefix rewrite

2018-01-28 Thread Aleksey Sanin
I am not sure what is the suggest algorithm to "rewrite namespace prefixes". Regardless, this is not part of C14N spec and something you will have to do yourself. Aleksey On 1/28/18 3:19 AM, Mikhail Goloborodko wrote: > Hi All, > > I will appreciate if somebody could help on how to normalize