Realization for writing into file

writeToFile realized and example xml file created. Reading and writing
should work with this xml.