Write a single self-closed element
Write a single self-closed element with attributes
Write nested elements
Write text nodes
Write comment nodes
Write processing instructions without values
Write processing instructions with values
Refactoring
Write top-level comments
Write top-level processing instructions
Refactoring
Make the writer public
Add a small utility to open and print out an XML file