Fixed cursorposition in XML file format.