parseXmlDocument function

XmlDocument parseXmlDocument(
  1. String content, {
  2. Window? window,
  3. String mime = 'text/xml',
})

Parses an XmlDocument.

import 'package:universal_html/parsing.dart';

void main() {
  final document = parseXmlDocument('<xml>...</xml>');
}

Implementation

XmlDocument parseXmlDocument(
  String content, {
  Window? window,
  String mime = 'text/xml',
}) {
  window ??= universal_html.window;
  return impl.parseXmlDocument(
    window: window,
    content: content,
    mime: mime,
  );
}