title: How to read XML to create resx file
body: <p>I have an XML File</p>
  
  <pre><code>&lt;? xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;string name="Foo"&gt;Bar&lt;/string&gt;
      &lt;string name="Foo1"&gt;Bar1&lt;/string&gt;
  
      // More string Tags here
  
  &lt;/resources&gt;
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>XMLTextReader reader = new XmlTextReader("FooBar.xml");
  
  ResXResourceWriter writer = new ResXResourceWriter("FooBar.resx");
  
  while(reader.Read())
  {
      if(reader.NodeType == XmlNodeType.Element &amp;&amp; reader["name"] != null)
         writer.AddResource("What_should_I_write_here", "What_should_I_write_here");
  }
  </code></pre>
  
  <p>How to read this xml so that I can create a resx File.</p>