output parse tree into xml file