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


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