Re: [xml] Is it a BUG for exclusive XML canonicalization in LibXML2?



One thing is for sure: LibXML2 and .Net make different decision on retaining 'tab' between XML tags, which is another potencial bug, either in .Net or LibXML2.
The tab character in this case is a part of text node. C14N does
not change text nodes thus tab character should not be removed.
You might want to check *how* you read XML tree into .Net because
I believe .NET xml parser can throw "formatting" stuff away
if some options are set or not set correctly.

Anyway, the 'extra' empty default namespace generated on <CanonicalizationMethod> by LibXML2 mentioned in my first mail violates the http://www.w3.org/TR/xml-exc-c14n/ if my understanding of that spec is correct.
Yes, you are correct. There is a bug in libxml2 c14n module.
I appologize for missing it first time in the bug you've
reported:

http://bugzilla.gnome.org/show_bug.cgi?id=319367

I am working on a fix (eta 30 minutes).

Thanks,
Aleksey




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