parseXmlFile method

Future<Map> parseXmlFile(
  1. String path
)

Return an Map object for the given the path of XML plist format file.

Implementation

Future<Map> parseXmlFile(String path) async {
  var file = File(path);
  if (!await file.exists()) {
    throw NotFoundException('Not found plist file');
  }

  return file.readAsString().then((value) => parse(value));
}