[YANGTOOLS-926] XMLStreamNormalizedNodeStreamWriter anyxml breaks with woodstox Created: 15/Jan/19 Updated: 16/Jan/19 Resolved: 16/Jan/19 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | 2.1.7 |
| Fix Version/s: | 2.1.8 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
As noted in This can be readily observed by dropping woodstox-core as a test dependency in yang-data-codec-xml - it will escalate multiple errors, some of which are showing The most notable issue is anyxml encoding, which seems to be hacky at best and could probably be fixed by not using a transformer. |
| Comments |
| Comment by Robert Varga [ 15/Jan/19 ] |
|
So the hackiness of anyxml encoding comes from the fact we are using a Transformer to stream events from DOMSource to XMLStreamWriter and that implementation is definitely buggy – hence we should just ditch the transformer and never look back. Doing that requires some thought as to what we want to do, the options being:
|
| Comment by Robert Varga [ 16/Jan/19 ] |
|
Option 1 is the simplest and seems to work okay. |