The whole XML write process is now one static DOM function.