from static method

XmlEtd? from(
  1. String string, {
  2. bool trimWhitespace = false,
})
override

Returns the first DTD Element Type Declaration found in string. string must not be null.

If trimWhitespace is true, unnecessary whitespace between nodes will be removed and all remaining whitespace will be replaced with a single space. trimWhitespace must not be null.

Returns null if no valid ETD was found.

Implementation

static XmlEtd? from(
  String string, {
  bool trimWhitespace = false,
}) {
  return StringParser.from<XmlEtd>(
    input: string,
    delimiter: Delimiters.etd,
    getNode: _getEtd,
    trimWhitespace: trimWhitespace,
  );
}