Project

Profile

Help

Bug #5065

closed

xml-to-json() fails to report invalid input

Added by Michael Kay over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
2021-08-16
Due date:
% Done:

100%

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

Description

If the input to xml-to-json() contains a map element with a non-whitespace text node child, no error is reported, the text node is simply ignored.

Actions #1

Updated by Michael Kay over 2 years ago

Added QT3 test cases xml-to-json-081 and -082. These tests fail (that is, they fail to report an error) under both Saxon 10 and 11.

Actions #2

Updated by Michael Kay over 2 years ago

  • Status changed from New to Resolved
  • Fix Committed on Branch 10, trunk added

Fixed by adding a check to JsonReceiver.characters().

Actions #3

Updated by O'Neil Delpratt over 2 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 10.6 added

Bug fix applied in the Saxon 10.6 maintenance release

Please register to edit this issue

Also available in: Atom PDF