<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Read XML with C#' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Read XML with C#' posted on the 'C#' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 17:31:55 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 17:31:55 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Read XML with C#</title>
      <link>http://www.programmersheaven.com/mb/csharp/409802/409802/read-xml-with-c/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I'm new to C# (coming from basic VB .Net and Java). I have made some classes to generate possible combinations for solar panels and solar inverters. Now I would like to get the source data from an XML file.&lt;br /&gt;
&lt;br /&gt;
The XML file would look a little like this:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: Blue;"&gt;&amp;lt;?xml verson="1.0" ?&amp;gt;&lt;br /&gt;
&amp;lt;SolarModules&amp;gt;&lt;br /&gt;
  &amp;lt;SolarModule&amp;gt;&lt;br /&gt;
    &amp;lt;Desctiption&amp;gt;REC220AE&amp;lt;/Description&amp;gt;&lt;br /&gt;
    &amp;lt;Brand&amp;gt;REC&amp;lt;/Brand&amp;gt;&lt;br /&gt;
    &amp;lt;Series&amp;gt;AE&amp;lt;/Series&amp;gt;&lt;br /&gt;
    &amp;lt;Model&amp;gt;REC220AE&amp;lt;/Model&amp;gt;&lt;br /&gt;
    &amp;lt;MaxPower&amp;gt;220&amp;lt;/MaxPower&amp;gt;&lt;br /&gt;
    &amp;lt;NumberOfCells&amp;gt;60&amp;lt;/NumberOfCells&amp;gt;&lt;br /&gt;
    &amp;lt;MaxSysVoltage&amp;gt;1000&amp;lt;/MaxSysVoltage&amp;gt;&lt;br /&gt;
  &amp;lt;/SolarModule&amp;gt;&lt;br /&gt;
&amp;lt;/SolarModules&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The thing is: I only need to read the file. Writing the file could be programmed later on, but for now, writing a basic xml file in notepad would do fine.&lt;br /&gt;
&lt;br /&gt;
The values should be put into variables. (string, int, Single) that would be used as parameters for the initialisation of objects.&lt;br /&gt;
&lt;br /&gt;
Could somebody tell me how to read this file (using the element names?).&lt;br /&gt;
&lt;br /&gt;
Thanks in advance!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409802/409802/read-xml-with-c/</guid>
      <pubDate>Tue, 24 Nov 2009 05:30:23 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Re: Read XML with C#</title>
      <link>http://www.programmersheaven.com/mb/csharp/409802/409812/re-read-xml-with-c/#409812</link>
      <description>ohh i see.. thx a lot for this..&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.socalgeocoins.com"&gt;geocoin&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.socalgeocoins.com"&gt;geocaching&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409802/409812/re-read-xml-with-c/#409812</guid>
      <pubDate>Tue, 24 Nov 2009 12:35:23 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Re: Read XML with C#</title>
      <link>http://www.programmersheaven.com/mb/csharp/409802/409841/re-read-xml-with-c/#409841</link>
      <description>: ohh i see.. thx a lot for this..&lt;br /&gt;
: &lt;br /&gt;
: &lt;a href="http://www.socalgeocoins.com"&gt;geocoin&lt;/a&gt;&lt;br /&gt;
: &lt;a href="http://www.socalgeocoins.com"&gt;geocaching&lt;/a&gt;&lt;br /&gt;
: &lt;br /&gt;
How do you mean "thx a lto for this"?&lt;br /&gt;
&lt;br /&gt;
Maybe I submitted this in a wrong topic, but then again, maybe I could retrieve a great base script...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409802/409841/re-read-xml-with-c/#409841</guid>
      <pubDate>Wed, 25 Nov 2009 03:49:32 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Re: Read XML with C#</title>
      <link>http://www.programmersheaven.com/mb/csharp/409802/409842/re-read-xml-with-c/#409842</link>
      <description>I'm sorry, I have submitted my reply twice because my browser temporarily crashed. My excuses.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/409802/409842/re-read-xml-with-c/#409842</guid>
      <pubDate>Wed, 25 Nov 2009 03:51:23 -0700</pubDate>
      <category>C#</category>
    </item>
  </channel>
</rss>