9
Shouts

Get Url from sitemap.xml using Linq2Xml

published 851 days, 8 hours, 31 minutes ago posted by http://quachnguyen.myopenid.com/http://quachnguyen.myopenid.com/ 852 days, 13 hours, 50 minutes ago
Monday, January 25, 2010 12:11:40 PM GMT Sunday, January 24, 2010 6:51:53 AM GMT

Problem You want to get url link from sitemap.xml file.

Solution: After downloading sitemap.xml string from internet by using WebClient, you can easy get url link form it by using Linq2Xml.

Here is the snippets code both C# and VB.NET

For demo purpose I use Console application.

C# using System; using System.Linq; using System.Net; using System.Xml.Linq;   namespace CS {     classProgram     {         staticvoid Main(string[] args)         {             WebClient client = ne...

category: Smart Client | clicked: 0 | | source: code2code.info | show counter code
tags: linq2xml