add implementation for ASTXml and modify bugs in ASTBuilder