doctype method

void doctype(
  1. Object text
)

Adds a XmlDoctype node.

For example, to generate an XML doctype element <!DOCTYPE note SYSTEM "Note.dtd"> one would write:

builder.doctype('note SYSTEM "Note.dtd"');

Implementation

void doctype(Object text) {
  _stack.last.children.add(XmlDoctypeSyntheticImpl(text.toString()));
}