You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Josh Adams (JIRA)" <ji...@apache.org> on 2019/04/24 14:24:00 UTC
[jira] [Resolved] (DAFFODIL-2064) CLI XML text output incorrect
with empty complex elements.
[ https://issues.apache.org/jira/browse/DAFFODIL-2064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Adams resolved DAFFODIL-2064.
----------------------------------
Resolution: Fixed
Fix Version/s: 2.4.0
This has been fixed in commit aae5c1233dd38d574a347b14750d6d9c31574fa1
> CLI XML text output incorrect with empty complex elements.
> ----------------------------------------------------------
>
> Key: DAFFODIL-2064
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2064
> Project: Daffodil
> Issue Type: Bug
> Components: CLI
> Reporter: Steve Lawrence
> Assignee: Josh Adams
> Priority: Major
> Fix For: 2.4.0
>
>
> Imagine we have a schema with a compex element that has all optional children and data where the none of the children exist. Or a similar case where all the children of a complex element are hidden. In such cases, the XMLTextInfosetOutputter will output something like this:
> {code:xml}
> <root>
> <complex_with_no_children>
> </complex_with_no_children>
> </root>
> {code}
> To a non-schema aware XML parser, complex_with_no_children will look like a simple type with whitespace content instead of an empty complex type, which can cause problems.
> Instead, the XMLTextInfosetOutputter should detect when a complex element will not have any text output (i.e. no children, or all children are hidden), and instead output an element with no content , so the above should look more like:
> {code:xml}
> <root>
> <complex_with_no_children />
> </rot>
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)