build method
Implementation
Future<void> build() async {
final builder = XmlBuilder();
// ignore: cascade_invocations
builder
..processing('xml', 'version="1.0" encoding="utf-8" standalone="yes"')
..element(
'urlset',
nest: await _buildNodes(),
attributes: {
'xmlns': 'http://www.sitemaps.org/schemas/sitemap/0.9',
'xmlns:xhtml': 'http://www.w3.org/1999/xhtml',
},
);
await _createFile(builder.buildDocument().toXmlString(pretty: true));
}