Skip to content

Instantly share code, notes, and snippets.

@ugurozturk
Created January 19, 2017 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugurozturk/7012dd991734cea41a5ba7bf7d6325dd to your computer and use it in GitHub Desktop.
Save ugurozturk/7012dd991734cea41a5ba7bf7d6325dd to your computer and use it in GitHub Desktop.
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