Hi,
i am getting a Null Pointer Exception in the importNode function while
importing a node to a new document .
importNode does not support some node types. Which are those node types? How
to handle such node types then ?...
public Document domResult (XObject objXObject)
{
DocumentBuilderFactory objDBFactory =DocumentBuilderFactory.newInstance();
Document objDomX=objDBFactory.newDocumentBuilder.newDocument();
NodeIterator objNodeIt = objXObject.nodeset();
Node objNode=objNodeIt.nextNode();
Node objNode1=objDomX.importNode(objNode,true);
}
Exception raised is -
java.lang.NullPointerException
from org.apache.xerces.dom.DocumentImpl.importNode
Thanx....
Shruti.