Skip to content

Sitemap processor Dart package, useful to parse XML with sitemaps and sitemap indexes into more manageable objects.

License

Notifications You must be signed in to change notification settings

tonijar/sitemap_processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sitemap processor Dart package, useful to parse XML with sitemaps and sitemap indexes into more manageable objects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages