[jdom-interest] exception appending Element to Node
felix
romero01 at supercable.es
Thu May 31 09:19:37 PDT 2001
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20010531/03993f49/attachment.htm
More information about the jdom-interest
mailing list