Skip to content

How to ignore unknown elements? #125

Answered by pdvrieze
Kryomancer asked this question in Q&A
Discussion options

You must be logged in to vote

Yes there is:

When you create the format implementation you can configure it with a policy:

XML {
    defaultPolicy {
        pedantic = false
        ignoreUnknownChildren() // or ignoreNamespaces() if only tags in other namespaces are to be ignored
    }
}

// alternatively you can set unknownChildHandler explicitly to any value you want.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kryomancer
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
Converted from issue

This discussion was converted from issue #123 on February 28, 2023 08:47.