Reads the Index and the attributes from the XML file and returns a dictionary with Index name and rules.