xml-to-json() does not reject an ill-formed document
If the input to xml-to-json() is a document node, the spec requires it to be well-formed in the sense that it has exactly one element child and no text node children. Saxon is not checking for this condition (new test case xml-to-json-C001).
#1 Updated by Michael Kay over 4 years ago
- Status changed from New to Resolved
- Applies to branch 9.8 added
- Fix Committed on Branch 9.7, 9.8 added
Fixed on the 9.7 and 9.8 branches. The fix reuses the existing DocumentValidator class which checks a document node for well-formedness; because xml-to-json() is in Saxon-HE, the DocumentValidator is moved from its current location to net.sf.saxon.event.
Please register to edit this issue