Skip to content

Change TDMLRunner to use XMLTextInfosetInputter/Outputter as default#1650

Open
olabusayoT wants to merge 1 commit intoapache:mainfrom
olabusayoT:daf-2909-tdml-runner-stringAsXML
Open

Change TDMLRunner to use XMLTextInfosetInputter/Outputter as default#1650
olabusayoT wants to merge 1 commit intoapache:mainfrom
olabusayoT:daf-2909-tdml-runner-stringAsXML

Conversation

@olabusayoT
Copy link
Copy Markdown
Contributor

  • it still uses scala results for certain things so we expose getScalaResult in the TDML Inputters/Outputters
  • Update TDML Schema to add support for custom validation name/type and use in stringAsXML tests
  • Drop whitespace between elements to keep expected matching actual, but keep alll others like mixed whitespace, attributes, comments unchanged
  • Introduced tests for stringAsXML validation and namespace handling.
  • Added a noNormalizations flag to control whether comments, processing instructions, and line endings are normalized.
  • Updated associated XML parsing methods and test cases to support the new option.
  • Revised whitespace removal to handle specific scenarios for improved XML processing.
  • Verify prefixes resolve to the same namespaces when checking prefixes

DAFFODIL-2909

@olabusayoT olabusayoT force-pushed the daf-2909-tdml-runner-stringAsXML branch 4 times, most recently from ef9f46c to 2e3475b Compare April 6, 2026 17:39
- it still uses scala results for certain things so we expose getScalaResult in the TDML Inputters/Outputters
- Update TDML Schema to add support for custom validation name/type and use in stringAsXML tests
- Drop whitespace between elements to keep expected matching actual, but keep all others like mixed whitespace, attributes, comments unchanged
- Introduced tests for `stringAsXML` validation and namespace handling.
- Added a `noNormalizations` flag to control whether comments/processing instructions are normalized.
- Updated associated XML parsing methods and test cases to support the new option.
- Revised whitespace removal to handle specific scenarios for improved XML processing.
- Verify prefixes resolve to the same namespaces when checking prefixes
- update TDMLException with more information on why getSimpleText isn't matching
- NullInfosetInputter should be received UTF-8 bytes for its events

Deprecation/Compatibility
Instead of ScalaXMLInfosetInputter/Outputter being the default inputter/outputter for TDML Runner, it is now XMLTextInfosetInputter/Outputter which supports stringsAsXml feature

DAFFODIL-2909
@olabusayoT olabusayoT force-pushed the daf-2909-tdml-runner-stringAsXML branch from 2e3475b to c42b8ae Compare April 6, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant