Inner logic changed

Now XmlSerializer used to generate xml.