Click here to Skip to main content
12,548,647 members (54,600 online)
Rate this:
Please Sign up or sign in to vote.
See more: XML Parsing
Posted 29-Dec-12 11:05am
Mika Wendelius 29-Dec-12 17:07pm
The list you posted isn't XML but just a lost of text. Where is it stored? In a file? Do you need to get the list from file or something else?
Member 9718083 29-Dec-12 17:10pm
Im sorry there was a mistake , here is the url
Sergey Alexandrovich Kryukov 29-Dec-12 21:39pm
There is no XML here.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

One way is to load the data into a XmlDocument and then extract the nodes using the tag.

The following example has the data embedded directly in the code, but I take it you should first fetch it from somewhere else. Note that the list is only partial to prevent too long code example:
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
         foreach (System.Xml.XmlNode node in xmlDoc.GetElementsByTagName("sehir")) {
Espen Harlinn 30-Dec-12 8:09am
Mika Wendelius 4-Jan-13 15:13pm
Thanks :D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 29 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100