<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2919.6307" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>In the next code, this error appears </FONT></DIV>
<DIV><FONT face=Arial size=2>"org.w3c.dom.DOMException: DOM005 Wrong
document":</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>......</FONT></DIV>
<DIV><FONT face=Arial size=2>Node nodeChild=nl.item(0);</FONT></DIV>
<DIV><FONT face=Arial size=2>DOMParser dp=new DOMParser();<BR>dp.parse(new
InputSource(new
StringReader("<"+sNameElement+">"+"</"+sNameElement+">")));<BR>Element
root=dp.getDocument().getDocumentElement();<BR>root.setAttribute("Order",sOrderElement);<BR>root.setNodeValue(sValueElement);<BR>nodeChild.appendChild(root);</FONT></DIV>
<DIV><FONT face=Arial size=2>....</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I don't know where is the problem, any help would
be appreciate</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV></FONT></DIV></BODY></HTML>