In the next code, this error appears
"org.w3c.dom.DOMException: DOM005 Wrong document":
 
 
......
Node nodeChild=nl.item(0);
DOMParser dp=new DOMParser();
dp.parse(new InputSource(new StringReader("<"+sNameElement+">"+"</"+sNameElement+">")));
Element root=dp.getDocument().getDocumentElement();
root.setAttribute("Order",sOrderElement);
root.setNodeValue(sValueElement);
nodeChild.appendChild(root);
....
 
I don't know where is the problem, any help would be appreciate
 
Regards

Reply via email to