title: How to read XML elements in VB.NET
body: <p>I have a very simple problem, but since I am new to XML, I face some problems.  I have this XML document:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;  
  &lt;Form_Layout&gt;
    &lt;Location&gt;
      &lt;LocX&gt;100&lt;/LocX&gt;
      &lt;LocY&gt;100&lt;/LocY&gt;  
    &lt;/Location&gt;  
    &lt;Size&gt;  
      &lt;Width&gt;300&lt;/Width&gt;  
      &lt;Height&gt;300&lt;/Height&gt;  
    &lt;/Size&gt;  
  &lt;/Form_Layout&gt; 
  </code></pre>
  
  <p>What I want to do is read the values from the LocX, LoxY, Width, and Height elements into my corresponding variables.</p>
  
  <p>Here is what I have tried:  </p>
  
  <pre><code>Dim XmlReader = New XmlNodeReader(xmlDoc)  
  While XmlReader.Read  
      Select Case XmlReader.Name.ToString()  
          Case "Location"  
              If XmlReader.??  
          Case "Size"  
              If XmlReader.??
      End Select  
  End While  
  </code></pre>
  
  <p>But, I cannot figure out how to access each child Node.</p>