I going to write fames.xml with my app. I need to know the best way to handle
adding a block of XML but not at the end because I need to have the root element
at the end. Any ideas.
1.never end it but when I use it add a end element?
3.find a string (</rootElement>)and append before it?

Is there a standard proceedure?

Clearly, this is beyond the scope of this forum. The answer must be in DOM. I will
need to find an XML forum.