Clean up namespace handling
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / streams / listeners / AbstractNotificationsData.java
index 455d3cc24813bb3b9af1c9798d85d8648170e190..abeaea98a3c968a3ca89c28ef99888eab86ac48d 100644 (file)
@@ -153,8 +153,8 @@ abstract class AbstractNotificationsData {
      * @return element of {@link Document}
      */
     protected Element basePartDoc(final Document doc) {
-        final Element notificationElement =
-                doc.createElementNS("urn:ietf:params:xml:ns:netconf:notification:1.0", "notification");
+        final Element notificationElement = doc.createElementNS(
+            NotificationFormatter.NOTIFICATION_NAMESPACE, NotificationFormatter.NOTIFICATION_ELEMENT);
 
         doc.appendChild(notificationElement);