code: def readLocationElement(self, locationElement):
          
          if self._strictAxisNames and not self.documentObject.axes:
              raise DesignSpaceDocumentError("No axes defined")
          loc = {}
          for dimensionElement in locationElement.findall(".dimension"):
              dimName = dimensionElement.attrib.get("name")
              if self._strictAxisNames and dimName not in self.axisDefaults:
                  # In case the document contains no axis definitions,
                  self.log.warning("Location with undefined axis: \"%s\".", dimName)
                  continue
              xValue = yValue = None
              try:
                  xValue = dimensionElement.attrib.get('xvalue')
                  xValue = float(xValue)
              except ValueError:
                  self.log.warning("KeyError in readLocation xValue %3.3f", xValue)
              try:
                  yValue = dimensionElement.attrib.get('yvalue')
                  if yValue is not None:
                      yValue = float(yValue)
              except ValueError:
                  pass
              if yValue is not None:
                  loc[dimName] = (xValue, yValue)
              else:
                  loc[dimName] = xValue
          return loc
docs: Format 0 location reader