xml - Help: The prefix '' cannot be redefined from '' to 'http://www.sitemaps.org/schemas/sitemap/0.9' within the same start element tag -


I am getting this error how can I fix this, code below

  XMLR = XMLRR New list of dim writer ("string") urlList.Add ("link1") urlList.Add ("link2") urlList.Add ("link3") Author as the seat (file location + "Statistics 3 XML"). Light-Start Document () Writer Merge start element ("urlset") author. To type "string" ("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9") as a string author of URL for each URL. Merge start element ("Url") author. Write element string ("People", a URL) author. After writing. () Next author. Writer Writer (Author). WriteEndDocument () Writer Close ()  

Try it out:

  CONST Name String = "http://www.sitemaps.org/schemas/sitemap/0.9" as a Sitemap Space, as author XmlWriter = XmlWriter.Create (file location + "StickyWells 3.xml") in the form of slow list UrlList.Add ("link1") urlList.Add ("link2") urlList.Add ("link3") in the new urlList as the author. WriteStartDocument () writer.WriteStartElement ("urlset", sitemapnamepace) for each aUrl as string in urlList author WrititeStartElement ("url", SitemapName) Author. WrititeElementString ("loc", aUrl) writer.WriteEndElement () Next author. WriteEndElement () Writer WriteEndDocument () Writer Close)  

Comments