parseXmlFileSync method

Map parseXmlFileSync(
  1. String path
)

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

Implementation

Map parseXmlFileSync(String path) {
  var file = File(path);
  if (!file.existsSync()) {
    throw NotFoundException('Not found plist file');
  }

  var data = file.readAsStringSync();
  return parse(data);
}