DocumentNode.fromXML constructor
DocumentNode.fromXML(
- String xmlSTR
Implementation
factory DocumentNode.fromXML(String xmlSTR) {
final document = XmlDocument.parse(xmlSTR);
List<XmlElement> nodesElements =
document.findAllElements("simpleTextPrintDocumentTextNode").toList();
List<TextNode> texts =
nodesElements.map((e) => TextNode.fromXML(e.toXmlString())).toList();
return DocumentNode(texts: texts);
}