title: What's the easiest way to Parse an XML file with many different levels?
body: <p>i know this is a long question.. but I'm going crazy here trying to learn one of the many ways to parse an XML document... Alot of the examples I have online are very simple XML documents.. but I have something multi leveled and I would like to get this parsed..</p>
  
  <p>my class code here: <a href="http://pastebin.com/VKbWzKHG" rel="nofollow">http://pastebin.com/VKbWzKHG</a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;PageList&gt;
      &lt;Page&gt;
          &lt;UpperLeft&gt;
              &lt;Parameters&gt;
                  &lt;League&gt;AL&lt;/League&gt;
                  &lt;Season&gt;R&lt;/Season&gt;
                  &lt;Category&gt;Runs&lt;/Category&gt;
                  &lt;RankOrder&gt;n/a&lt;/RankOrder&gt;
              &lt;/Parameters&gt;
              &lt;Info&gt;
                  &lt;Row1&gt;
                      &lt;TeamLogo&gt;LAA.tif&lt;/TeamLogo&gt;
                      &lt;Rank&gt;1.&lt;/Rank&gt;
                      &lt;Name&gt;Trout&lt;/Name&gt;
                      &lt;Stat&gt;109&lt;/Stat&gt;
                  &lt;/Row1&gt;
                  &lt;Row2&gt;
                    .
                    .
                    .
                  &lt;/Row5&gt;
              &lt;/Info&gt;
          &lt;/UpperLeft&gt;
          &lt;UpperRight&gt;
              .
              .
              .
          &lt;/UpperRight&gt;
          &lt;LowerLeft&gt;
              .
              .
          &lt;/LowerLeft&gt;
          &lt;LowerRight&gt;
              .
              .
          &lt;/LowerRight&gt;
      &lt;/Page&gt;
  &lt;/PageList&gt;
  </code></pre>
  
  <p>pretty much there will be a lot of pages.. i didn't want to paste the full thing so i tried to cut it out.. but this is the structure:</p>
  
  <pre><code>page
    --&gt; upper left
        --&gt; parameters
            --&gt; league
            --&gt; season
            --&gt; category
            --&gt; rankorder
        --&gt; info
            --&gt; row 1
                --&gt; team logo
                --&gt; rank
                --&gt; name
                --&gt; stat
            --&gt; row 2 to row 5
    --&gt; upper right, lower left, lower right
  end page
  </code></pre>
  
  <p>How can I successfully parse this nightmare?  Everything is a class that I created that was nice and neat.. but trying to put everything back into a class i'm just having so much trouble.. </p>
  
  <pre><code>XDocument xdoc;
          try
          {
              List&lt;MLBPage&gt; collection =
              {
                  from e in XDocument.Load("PageList.xml").Root.Elements("PageList")
  
                  select new MLBPage
                  {
                      ul = new Quadrant  //upper left
                      {
                          qp = new QuadrantParameters
                          {
                              //league, season, category, rank order here
                          },
                          qi = new QuadrantInfo
                          {
                              //team logo, rank, name, stat here
                          }
                      }
                  }
              }
          }
          catch (Exception)
          {
              /
  </code></pre>