code: def _loadChildRules(context, xmlElement, attributeToFormatMap):
      
      rules = []
      for ruleElement in xmlElement.getchildren():
          if not ruleElement.tag in _ruleClassDict:
              raise ValueError("Not supported rule '%s'" % ruleElement.tag)
          rule = _ruleClassDict[ruleElement.tag](context, ruleElement, attributeToFormatMap)
          rules.append(rule)
      return rules
docs: Extract rules from Context or Rule xml element