title: Why does `XmlDocument.LoadXml()` not work with namespace?
body: <p>I have an XML tag written as string:</p>
  
  <pre><code>&lt;w:sym w:font="Wingdings" w:char="F0FE"/&gt;
  </code></pre>
  
  <p>I would like to create an XML tag from the string without using explicit methods like <code>AddAttribute()</code> etc. So I use <code>XmlDocument.LoadXml()</code>, like this:</p>
  
  <pre><code>XmlDocument doc = new XmlDocument();
  XmlNamespaceManager nsmgr = new XmlNamespaceManager(doc.NameTable);
  nsmgr.AddNamespace("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
  doc.LoadXml(@"&lt;w:sym w:font=""Wingdings"" w:char=""F0FE""/&gt;");
  </code></pre>
  
  <p><code>LoadXml()</code> is throwing an exception saying that the prefix "w" is not defined.</p>
  
  <p>This is surprising to me as I define the namespace with <code>NameTable</code>.</p>
  
  <p>What is the problem here?</p>
  
  <hr>
  
  <p><strong>Edit</strong>: I have seen a lot of answers explaining how to read fragments, but I have not found one that explained what to do with a namespace.</p>