Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
As you have seen, it is very easy to create or modify XML documents with DOM. The parser creates a Document object and you can use it to add (or modify) objects to the document tree.
The main advantage to using DOM is the same reason you use a parser in the first place: It shields the application from the XML syntax.