initialize objects retrieving instance variable from XML