N Sahni wrote:Hi,
Everything looks good here except the namespace.
The namespace declared in xml is uri:osp:wsd whereas namaspace set in namaspacecontext is uri:osp.wsd Both does not match.
N Sahni wrote:Can you try modifying DocumentBuilderFactory instance like this:
DocumentBuilderFactory builder = DocumentBuilderFactory.newInstance();
DocumentBuilder db = builder.newDocumentBuilder();
I tried executing your code and replicating the issue. By setting builder.setNamespaceAware(true); it worked properly.