handleXML now successfully reads from & writes to XML