added ToXmlFile and FromXmlFile