title: How can I get a node by id in XML?
body: <p>I am creating a language translation using XML by id</p>
  
  <p>XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;root&gt;
      &lt;word id="1"&gt;Word1_English&lt;/word&gt;
      &lt;word id="2"&gt;Word2_English&lt;/word&gt;
      &lt;word id="3"&gt;Word3_English&lt;/word&gt;
  
      &lt;word id="10001"&gt;Word1_French&lt;/word&gt;
      &lt;word id="10002"&gt;Word2_French&lt;/word&gt;
      &lt;word id="10003"&gt;Word3_French&lt;/word&gt;
  
      &lt;word id="20001"&gt;Word1_Chinese&lt;/word&gt;
      &lt;word id="20002"&gt;Word2_Chinese&lt;/word&gt;
      &lt;word id="20003"&gt;Word3_Chinese&lt;/word&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>Code behind:</p>
  
  <pre><code>XmlDocument xmlDocument;
  FileInfo fileInfo;
  XmlNodeList xmlNodeList;
  
  string xPath = "D:\XML\LanguagePack.xml";
  fileInfo = new FileInfo(xPath);
  xmlDocument = new XmlDocument();
  xmlDocument.Load(fileInfo.FullName);
  
  xmlNodeList = xmlDocument.GetElementById("10001");
  return xmlNodeList[0].InnerText; //should return 'Word1_French'
  </code></pre>
  
  <p>This code doesn't work, <code>xmlNodeList</code> is null.<br>
  How can I get the content Word1_French?</p>