<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Reading XML from the web using C#</title>
	<atom:link href="http://www.softwarepassion.com/reading-xml-from-the-web-using-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.softwarepassion.com/reading-xml-from-the-web-using-c/</link>
	<description>by Krzysztof Grajek</description>
	<lastBuildDate>Wed, 01 Feb 2012 20:00:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: odalton</title>
		<link>http://www.softwarepassion.com/reading-xml-from-the-web-using-c/comment-page-1/#comment-1390</link>
		<dc:creator>odalton</dc:creator>
		<pubDate>Sun, 27 Feb 2011 21:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.softwarepassion.com/?p=146#comment-1390</guid>
		<description>cool example i am going to use this example combined with http request to read xml produced by php

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;

namespace phptalk
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            XmlDocument document = new XmlDocument();
            document.Load(&quot;http://127.0.0.1/csharp/index2.php&quot;);
            XmlElement root = document.DocumentElement;
            XmlNodeList nodes = root.SelectNodes(&quot;/root/order&quot;);
 
            foreach (XmlNode node in nodes)
            {
                string idStr = node[&quot;order_id&quot;].InnerText;
                string dateStr = node[&quot;order_date&quot;].InnerText;

                MessageBox.Show(idStr);
                MessageBox.Show(dateStr);

                XmlElement root2 = document.DocumentElement;
                XmlNodeList nodes2 = root.SelectNodes(&quot;/root/order/item&quot;);
                foreach (XmlNode nodex in nodes2)
                {
                      string sku = nodex[&quot;item_sku&quot;].InnerText;
                      MessageBox.Show(sku);

                }
            }
        }
    }
}</description>
		<content:encoded><![CDATA[<p><!--INFOLINKS_ON-->cool example i am going to use this example combined with http request to read xml produced by php</p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using System.Xml;</p>
<p>namespace phptalk<br />
{<br />
    public partial class Form1 : Form<br />
    {<br />
        public Form1()<br />
        {<br />
            InitializeComponent();<br />
        }</p>
<p>        private void Form1_Load(object sender, EventArgs e)<br />
        {<br />
            XmlDocument document = new XmlDocument();<br />
            document.Load(&#8220;http://127.0.0.1/csharp/index2.php&#8221;);<br />
            XmlElement root = document.DocumentElement;<br />
            XmlNodeList nodes = root.SelectNodes(&#8220;/root/order&#8221;);</p>
<p>            foreach (XmlNode node in nodes)<br />
            {<br />
                string idStr = node["order_id"].InnerText;<br />
                string dateStr = node["order_date"].InnerText;</p>
<p>                MessageBox.Show(idStr);<br />
                MessageBox.Show(dateStr);</p>
<p>                XmlElement root2 = document.DocumentElement;<br />
                XmlNodeList nodes2 = root.SelectNodes(&#8220;/root/order/item&#8221;);<br />
                foreach (XmlNode nodex in nodes2)<br />
                {<br />
                      string sku = nodex["item_sku"].InnerText;<br />
                      MessageBox.Show(sku);</p>
<p>                }<br />
            }<br />
        }<br />
    }<br />
}<!--INFOLINKS_OFF--></p>
]]></content:encoded>
	</item>
</channel>
</rss>

