altered the way XML documents are created to be more correct. This appears to be BUgged