Remove { omitDoctype: true } since it didn't actually work.
Document how to serialize a document.