parameters: (filename)
return_statement: return data
docstring: Load block tree description from xml file
docstring_summary: Load block tree description from xml file
docstring_tokens: Load block tree description from xml file
function: def from_xml(filename):
      """Load block tree description from xml file"""
      element, version_info = xml.load(filename, 'block_tree.dtd')
  
      try:
          data = convert_category_node(element)
      except NameError:
          raise ValueError('Conversion failed', filename)
  
      return data
function_tokens: def from_xml ( filename ) : element , version_info = xml . load ( filename , 'block_tree.dtd' ) try : data = convert_category_node ( element ) except NameError : raise ValueError ( 'Conversion failed' , filename ) return data