Created
January 19, 2017 02:39
-
-
Save ugurozturk/7012dd991734cea41a5ba7bf7d6325dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Xml; | |
using System.Xml.Linq; | |
namespace ConsoleApp2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
XDocument xdoc = XDocument.Load("animelist.xml"); | |
var animeler = xdoc.Element("myanimelist").Elements("anime").Where(a => a.Element("my_status").Value == "Plan to Watch"); // Change Here | |
foreach (var item in animeler) | |
{ | |
Console.WriteLine("1. " + item.Element("series_title").Value + " : " + item.Element("my_watched_episodes").Value); | |
} | |
Console.ReadKey(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment