AST to XML visitor.