Deterministically repair a document so it conforms to its schema where
possible: drops children from leaf nodes, wraps stray inline content in the
schema's default textblock, strips disallowed marks, merges adjacent text
nodes, and guarantees a non-empty top node.
Deterministically repair a document so it conforms to its schema where possible: drops children from leaf nodes, wraps stray inline content in the schema's default textblock, strips disallowed marks, merges adjacent text nodes, and guarantees a non-empty top node.