getXML method

XmlDocument getXML(
  1. File file
)

Implementation

XmlDocument getXML(File file) {
  try {
    return XmlDocument.parse(file.readAsStringSync());
  } catch (e, st) {
    printVerbose('Exception during parsing xml from ${file.path}: $e\n$st');
    throw RunException.err('Failed parsing XML from ${file.path}: $e');
  }
}