Fixed xml and txt output.