XmlIO implemented with generic class type