John Jai wrote:Then try where you have to append the XmlDataElement. If that should be under the root, then get the doc.getDocumentElement() and append the XmlDataElement to it.
Hi John: Fine, that works; I was deducing when I call "Element XmlDataElement = doc.createElement("XmlData");" DOM knows both is a new node, and where I wanna put the new node (considering is the next new node inside the document) but it is not the case. Here's the new code calling the root node and appending a new XmlData node to it, that solution worked for me (Lines 34, 35):
Again, thanks so much for your help.