doctypeElement property

  1. @override
XmlDoctypeNaturalImpl? doctypeElement
final

Return the XmlDoctype element, or null if not defined.

For example, the following code prints <!DOCTYPE html>:

var xml = '' ''; print(XmlDocument.parse(xml).doctypeElement);

Implementation

@override
final XmlDoctypeNaturalImpl? doctypeElement;