I have an app in VB6 to store sales information into database. While user is entering data I want to store it into a local XML file so as to avoid losing data because of network failure, etc. So when each item row is entered, the row is appended into the XML file.I was thinking of appending the new row data into the file so it wouldn't have to read any existing data. But as XML requires closing tag, this doesn't seem to work. So I think I would have to read the file, remove last tags and append the rest of the data with the closing tag. Would this be the right method? What would be the best approach performance-wise? Using XMLDocument or TextStream?