Some refactoring. XmlHelper removed. Method "generate" returns string.