[CONTROLLER-305] config-netconf-connector: Creating DOM Document's elements with namespace Created: 10/Apr/14  Updated: 25/Jul/23  Resolved: 15/Apr/14

Status: Resolved
Project: controller
Component/s: netconf
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Milos Fabian Assignee: Milos Fabian
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Issue Links:
Blocks
blocks CONTROLLER-197 Use XmlUnit for xml comparison in tests Resolved
External issue ID: 714

 Description   

-currently elements are created with Document#createElement(String tagName) method and then namespace is set with Element#setAttribute(), it causes that Node#getNamespaceURI() method returns null - fails to compare two DOM Documents with XMLUnit, however are identical
-correct way is to use Document#createElementNS(String namespaceURI, String qualifiedName) method



 Comments   
Comment by Milos Fabian [ 14/Apr/14 ]

https://git.opendaylight.org/gerrit/#/c/6155/

Generated at Wed Feb 07 19:52:42 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.