sitemap_processor

A sitemap and sitemap index processor Dart package, converts from XML to an easier to manipulate object.

Importing library

import 'package:sitemap_processor/sitemap_processor.dart';

Process a sitemap index

final SitemapProcessor processor = SitemapProcessor();
SitemapIndex sitemapIndex = processor.process(sitemapIndexXmlString);
print(sitemapIndex.sitemapindex.sitemap[0].loc);

Process a sitemap

final SitemapProcessor processor = SitemapProcessor();
Sitemap sitemap = processor.process(sitemapXmlString);
print(sitemap.urlset.url[0].loc);

More info

Libraries

sitemap_processor