[YANGTOOLS-996] Improve anyxml namespace emission Created: 27/May/19 Updated: 25/Mar/20 |
|
| Status: | Confirmed |
| Project: | yangtools |
| Component/s: | codecs |
| Affects Version/s: | None |
| Fix Version/s: | None |
| 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 | ||
| Description |
|
Our XML restreaming for anyxml nodes emits namespace declarations as they are encountered in the source. While this works, it can also lead to namespaces being emitted multiple times, as anyxml nodes are inherently emitted as in the context of a document - hence the namespace may already be properly bound. Improve namespace declaration forwarding so that it does not emit a namespace declaration if the prefix is already properly bound. |