[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: |
|
||||||||
| 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. |