read var from xml file