Overwritten the methods for writing the actual xml from generic.py because mede8er requires xml-declarations for proper reading !