doctype property
XmlDoctype?
doctype
The XML document type definition.
Implementation
XmlDoctype? get doctype => children.cast<XmlNode?>().firstWhere(
(child) => child.runtimeType == XmlDoctype,
orElse: () => null,
) as XmlDoctype?;