Make Xml possible in the parse tree + misc improvements

See #21 and #22.
Is the `print_endline` for debugging or do you want to leave it there?  If so, may I suggest it only prints if a `debug` flag is turned on?