parse method

void parse(
  1. String xmlString
)

Parse an XML string

Implementation

void parse(String xmlString) {
  _result = null;
  final xmlStringPrep = _Xml2JsonUtils.prepareXmlString(xmlString);
  try {
    _result = XmlDocument.parse(xmlStringPrep);
  } on Object {
    const errorString = 'parse error - invalid XML';
    throw Xml2JsonException(errorString);
  }
}