Beispiel #1
0
		public void FetchPlanetItems ()
		{
			try {
				WebRequest request = WebRequest.Create ("http://planet.gnome.org/atom.xml");
				Stream stream = request.GetResponse ().GetResponseStream ();
				XmlDocument document = new XmlDocument ();
				document.Load (stream);

				foreach (XmlNode node in document.GetElementsByTagName ("entry")) {
					EntryData post = new EntryData (node);
					if (post.IsComplete) 
						entryList.Add (post);
				}

				GLib.Idle.Add (FetchDoneClosure);
			} catch {
			}
		}
Beispiel #2
0
        public void FetchPlanetItems()
        {
            try {
                WebRequest  request  = WebRequest.Create("http://planet.gnome.org/atom.xml");
                Stream      stream   = request.GetResponse().GetResponseStream();
                XmlDocument document = new XmlDocument();
                document.Load(stream);

                foreach (XmlNode node in document.GetElementsByTagName("entry"))
                {
                    EntryData post = new EntryData(node);
                    if (post.IsComplete)
                    {
                        entryList.Add(post);
                    }
                }

                GLib.Idle.Add(FetchDoneClosure);
            } catch {
            }
        }