It depends... Do you mean
? Well, who says that your existing XML file has to be treated as such (parsed and validated)? Seek to the end of the file, before the
sequence and done. But I guess, you want a little bit more than that...and a little bit more robustness?
The previous suggestion is simple to program, but surely not the fastest way to append a node to a (potentially large) file.