Fixed a problem with XML debug output.