title: C#/XML Reading XML File doesnt work
body: <p>I want to read an XML-File and save the InnerText-Strings but it crashes with a SystemNullReference error. I think the way I read it is wrong but I'm not sure.</p>
  
  <p>XML-File:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="Windows-1252" standalone="no"?&gt;
  &lt;schema&gt;
    &lt;Hintergrund&gt;#FFFFFFFF&lt;/Hintergrund&gt;
    &lt;Zahlen&gt;#FFFFFFFF&lt;/Zahlen&gt;
    &lt;Text&gt;#FFFFFFFF&lt;/Text&gt;
    &lt;Zeichenketten&gt;#FFFFFFFF&lt;/Zeichenketten&gt;
    &lt;Tags&gt;#FF000000&lt;/Tags&gt;
    &lt;Direktiven&gt;#FF000000&lt;/Direktiven&gt;
    &lt;Ausdruecke&gt;#FF000000&lt;/Ausdruecke&gt;
    &lt;Initialisierer&gt;#FF000000&lt;/Initialisierer&gt;
    &lt;Modifizierer&gt;#FF000000&lt;/Modifizierer&gt;
    &lt;Booleanische&gt;#FF000000&lt;/Booleanische&gt;
    &lt;Operator&gt;#FF000000&lt;/Operator&gt;
    &lt;Kommentare&gt;#FF000000&lt;/Kommentare&gt;
  &lt;/schema&gt;
  </code></pre>
  
  <p>Reading:</p>
  
  <pre><code>foreach (XmlNode node in doc.SelectNodes("/schema/*"))
  {
      switch (node.Name)
      {
          case "Hintergrund":
              colorBG = (Color)ColorConverter.ConvertFromString(node["Hintergrund"].InnerText);
              break;
          case "Zahlen":
              colorNumbers = (Color)ColorConverter.ConvertFromString(node["Zahlen"].InnerText);
              break;
          case "Text":
              colorText = (Color)ColorConverter.ConvertFromString(node["Text"].InnerText);
              break;
          case "Zeichenketten":
              colorStrings = (Color)ColorConverter.ConvertFromString(node["Zeichenketten"].InnerText);
              break;
          case "Tags":
              colorTags = (Color)ColorConverter.ConvertFromString(node["Tags"].InnerText);
              break;
          case "Direktiven":
              colorDirectives = (Color)ColorConverter.ConvertFromString(node["Direktiven"].InnerText);
              break;
          case "Ausdruecke":
              colorStatements = (Color)ColorConverter.ConvertFromString(node["Ausdruecke"].InnerText);
              break;
          case "Initialisierer":
              colorInitial = (Color)ColorConverter.ConvertFromString(node["Initialisierer"].InnerText);
              break;
          case "Modifizierer":
              colorModifiers = (Color)ColorConverter.ConvertFromString(node["Modifizierer"].InnerText);
              break;
          case "Booleanische":
              colorBools = (Color)ColorConverter.ConvertFromString(node["Booleanische"].InnerText);
              break;
          case "Operator":
              colorOperators = (Color)ColorConverter.ConvertFromString(node["Operator"].InnerText);
              break;
          case "Kommentare":
              colorComments = (Color)ColorConverter.ConvertFromString(node["Kommentare"].InnerText);
              break;
      }   
  }
  </code></pre>
  
  <p>Please tell me why it doesn't works.</p>