parameters: (self, root)
docstring: Parse root XML element.
  
          This implementation parses root as interfaces element with multiple
          interfaces in it.
  
          Keyword arguments:
          root -- root element.
docstring_summary: Parse root XML element.
docstring_tokens: Parse root XML element .
function: def _parse_root(self, root):
          """Parse root XML element.
  
          This implementation parses root as interfaces element with multiple
          interfaces in it.
  
          Keyword arguments:
          root -- root element.
  
          """
  
          self._params = root.attrib
          self._interface_name = None
  
          for element in root:
              if element.tag != "interface":
                  raise ParseError("Subelement '" + element.tag +
                                   "' is unexpected in interfaces")
  
              if "name" not in element.attrib:
                  raise ParseError(
                      "Name is not specified for interface")
  
              self._interface_name = element.attrib["name"]
              self._parse_interface(element, self._interface_name + "_")
function_tokens: def _parse_root ( self , root ) : self . _params = root . attrib self . _interface_name = None for element in root : if element . tag != "interface" : raise ParseError ( "Subelement '" + element . tag + "' is unexpected in interfaces" ) if "name" not in element . attrib : raise ParseError ( "Name is not specified for interface" ) self . _interface_name = element . attrib [ "name" ] self . _parse_interface ( element , self . _interface_name + "_" )