debug for xml