parse function
- @Deprecated('Use `XmlDocument.parse` instead')
- String input, {
- XmlEntityMapping? entityMapping,
Return an XmlDocument for the given input
string, or throws an
XmlParserException if the input is invalid.
For example, the following code prints Hello World
:
final document = parse('
Note: It is the responsibility of the caller to provide a standard Dart String using the default UTF-16 encoding.
Implementation
@Deprecated('Use `XmlDocument.parse` instead')
XmlDocument parse(String input, {XmlEntityMapping? entityMapping}) =>
parseXmlDocument(input, entityMapping: entityMapping);