X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Futil%2Fxml%2FXMLNetconfUtil.java;h=e7ce4541559943e86983e2e83285ff0d0b9c18e6;hb=d7ef378979e5cb2916790d5e6c96e3262875885b;hp=d9303228f95b55773c3a15e7ef6e0bc7b01cef71;hpb=a92d9d6a21a0f6ca8d2153795721f500eaf29ee9;p=controller.git diff --git a/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/xml/XMLNetconfUtil.java b/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/xml/XMLNetconfUtil.java index d9303228f9..e7ce454155 100644 --- a/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/xml/XMLNetconfUtil.java +++ b/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/xml/XMLNetconfUtil.java @@ -13,13 +13,17 @@ import javax.xml.xpath.XPathExpression; import javax.xml.xpath.XPathExpressionException; import javax.xml.xpath.XPathFactory; -public class XMLNetconfUtil { +import org.opendaylight.controller.netconf.api.xml.XmlNetconfConstants; + +public final class XMLNetconfUtil { + + private XMLNetconfUtil() {} public static XPathExpression compileXPath(String xPath) { final XPathFactory xPathfactory = XPathFactory.newInstance(); final XPath xpath = xPathfactory.newXPath(); xpath.setNamespaceContext(new HardcodedNamespaceResolver("netconf", - XmlNetconfConstants.RFC4741_TARGET_NAMESPACE)); + XmlNetconfConstants.URN_IETF_PARAMS_XML_NS_NETCONF_BASE_1_0)); try { return xpath.compile(xPath); } catch (final XPathExpressionException e) {