private method to get the root from xml