I bumped into a problem with one sitemap, that was missing "http" in the beginning of the urls, making the library fail in loading the related sitemaps.
As you can see, I had to make a unique SitemapParser for each downloaded sitemap, to allow the url resolution be based on the sitemap being loaded instead of being relative to the original url. This also required me to rename the internal class to avoid name clashes. I hope that's fine.
Anyways, I hope you pull this so I can return to using your version.
Hey there,
Cool little library you have here!
I bumped into a problem with one sitemap, that was missing "http" in the beginning of the urls, making the library fail in loading the related sitemaps.
In this commit I made use of Node's url.resolve.
As you can see, I had to make a unique SitemapParser for each downloaded sitemap, to allow the url resolution be based on the sitemap being loaded instead of being relative to the original url. This also required me to rename the internal class to avoid name clashes. I hope that's fine.
Anyways, I hope you pull this so I can return to using your version.
Cheers,
Rolf