You cannot do it, because you data file is
not an XML file. Try to open it any browser; it will tell you why. XML should have one root element. Have a correct XML file, first of all,
well-formed, and it will work.
[EDIT]
Alternatively, create your own proprietary standard, call it, say, "SuperXML" (especially if it is going to be a superset of XML) and create your own generator, parser, and perhaps serialization. It is quite possible. Only avoid the name "XML" and better even the file naming schema *.XML.
[END EDIT]
But wait a minute… People already explained you this problem:
XML checking for duplicates before saving, if duplicate found tell me about it[
^].
Why would you ignore those comments? And remember, re-posting is considered as abuse. Main part here is: if you cannot use advice which you already got, who would like to waste time on your re-posted questions? There is a little hope now that you will use the.
—SA