XmlReader does not have any content - and yes, I called read() and so on
<p>I have an xml without much depth and length. It contains about 20 key-value-pairs.
Now I want to read one specific value. Easy? Well, not if XmlReader suddenly does not want to anymore:</p>

<p>Input:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;CATALOG&gt;
  &lt;CD&gt;
    &lt;TITLE&gt;My test Title&lt;/TITLE&gt;
  &lt;/CD&gt;
&lt;/CATALOG&gt;
</code></pre>

<p>First test with xmlConfig being the xml as type string:</p>

<pre><code>var reader = XmlReader.Create(new StringReader(xmlConfig));
reader.Read();
string theXmlString = reader.ReadOuterXml();
</code></pre>

<p>Result: String is empty</p>

<p>Second test with xmlConfig being the xml as type string:</p>

<pre><code>var reader = XmlReader.Create(new StringReader(xmlConfig));
reader.MoveToAttribute("myAttr");
string theXmlString = reader.ReadInnerXml();
</code></pre>

<p>Result: String is empty.</p>

<p>Debugging shows: reader is empty. It does not actually read the string.</p>

<p>Do you guys have any ideas?</p>