Partial implementation of XML generator.