Project

Profile

Help

Bug #2722

closed

xml-to-json() does not reject an ill-formed document

Added by Michael Kay about 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
Start date:
2016-04-21
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7, trunk
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Platforms:

Description

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).

Please register to edit this issue

Also available in: Atom PDF