tryParse static method
Takes in a String of valid XML and returns it as a XmlDocument containing all the xml package objects
Implementation
static XmlDocument? tryParse(String? xml, {bool silent = false}) {
XmlDocument? document;
try {
if (xml != null) document = XmlDocument.parse(xml);
} catch (e) {
document = null;
//if (silent != true) System().toast(title: 'Error Parsing Xml in TryParse', description: e.toString());
Log()
.exception(e, caller: 'xml.dart => XmlDocument tryParse(String xml)');
}
return document;
}