Minor edition to the XMLWRiter class