Debugging logging for XML