I have a server that generates this code
HTML Code:
<name>Unknown owner</name>
<owner>Randomly generated list</owner>
I want to add another item to this shopping list.

So I am trying to do something like

HTML Code:
			    	Element element = doc.createElement("item");
But this is not the way to do it.

It is generating
& putting it here:

What I need is to generate
HTML Code:
& put it before
at the end of the list.

Does anyone know how to do that?

Thank you,