Fixed a few syntax errors in the xml output
Squashed commit of the following:

commit 6f1ea86f96db24ad372157428f254b7689e8be36
Author: Jonathan Griffin <jdg547@raijin4.(none)>
Date:   Mon Dec 1 17:05:33 2014 +1100

    Fixed a few xml syntax errors