Started porting the xml printer.
Changed the warning messages to go to stderr instead of stdout.