[YANGTOOLS-1109] Use XmlCodecs for value writeout Created: 04/Jun/20  Updated: 18/Jan/24

Status: Confirmed
Project: yangtools
Component/s: codecs
Affects Version/s: None
Fix Version/s: 14.0.0, 13.0.2

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from YANGTOOLS-1108 Leaf of type union containing identit... Resolved

 Description   

XML codec is using home-brew codepaths for encoding values to the XML stream, ignoring the infrastructure present in XmlCodecFactory.

Refactor serializer instantiation to take a XmlCodecFactory, eliminating the need for separate logic and fixing any remaining bugs that are left in union handling



 Comments   
Comment by Robert Varga [ 07/Sep/20 ]

This really boils down to unifying XMLStreamWriterUtils with XmlCodec(Factory).

Comment by Robert Varga [ 04/Oct/20 ]

This is problematic due to XMLStreamWriterUtils having an schemaless variant, whereas XmlCodecFactory positively requires a context. This is a larger refactor than we can manage right now.

Generated at Wed Feb 07 20:55:13 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.