Skip to content

XML_C14N_1_0, and XML_C14N_1_1 Canonicalization #3150

Answered by flavorjones
apokalipto asked this question in Q&A
Discussion options

You must be logged in to vote

That line of code was introduced in 08823e0 which contains a descriptive commit message that I'll reproduce here to save you a click:

commit 08823e01
Author: Mike Dalessio <mike.dalessio@gmail.com>
Date:   2022-01-19 23:39:02 -0500

    fix: Document#canonicalize raises exception for incompatible modes

    `Document#canonicalize` now raises an exception if
    `inclusive_namespaces` is non-nil and the mode is inclusive,
    i.e. XML_C14N_1_0 or XML_C14N_1_1.

    `inclusive_namespaces` can only be passed with exclusive modes, and
    previously this silently failed.

You should only see this error if you're trying to do something that the canonicalization spec doesn't support. If you thi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@apokalipto
Comment options

Answer selected by apokalipto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants