I wrote a program to extract data from sitemaps's as this format type URLSet struct { Urls []SitemapURL `xml:"url"` }
type SitemapURL struct { Location string `xml:"loc"` LastModifiedDate string `xml:"lastmod"` ChangeFrequency string `xml:"changefreq"` Priority string `xml:"priority"` } but some domains have other shape of xml file like this type URLSet struct { Urls []SitemapURL `xml:"url"` } type SitemapURL struct { Location string `xml:"loc"` ChangeFrequency string `xml:"changefreq"` Priority string `xml:"priority"` LastModifiedDate string `xml:"lastmod"` } Any body can help me to handle these both things at same time -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/f57d861f-341a-4590-a90f-7c6016f993e4%40googlegroups.com.