toXml method

XmlDocument toXml(
  1. XmlBuilder builder
)

Implementation

XmlDocument toXml(XmlBuilder builder) {
  builder.declaration(encoding: 'UTF-8');

  buildXml(builder);

  return builder.buildDocument();
}