Reading definition from xml file