germanetpy.utils

Functions

convert_to_boolean(attribute)

Converts the given String into a boolean.

parse_xml(datadir, f)

Parses an XML file and returns the XML tree

germanetpy.utils.convert_to_boolean(attribute: str) bool[source]

Converts the given String into a boolean.

Parameters:

attribute – The attribute that needs to be converted into a boolean

Returns:

True, False or an Error message if the attribute doesn’t have the right value

germanetpy.utils.parse_xml(datadir: str, f: str) lxml.etree[source]

Parses an XML file and returns the XML tree

Parameters:
  • datadir – The directory where the file is located

  • f – the filename

Returns:

The parsed XML tree