parseDOM static method

Future<XmlDocument> parseDOM(
  1. File file
)

Implementation

static Future<XmlDocument> parseDOM(File file) async {
  final String contents = await file.readAsString();
  final XmlDocument xmlDoc = XmlDocument.parse(contents);
  return xmlDoc;
}