toXml method

String toXml({
  1. bool pretty = true,
})

Implementation

String toXml({bool pretty = true}) {
  final writer = _XmlWriter(pretty: pretty);
  writer
    ..line('<?xml version="1.0" encoding="UTF-8"?>')
    ..open('streaming');
  for (final service in services) {
    service._write(writer);
  }
  writer.close('streaming');
  return writer.toString();
}