title: Extract values from XML node
body: <p>I have an xml file that I have to read it and extract values from nodes in to some variables, I came across a node that I don't know how to extract data, this is the node:</p>
  
  <pre><code>&lt;QuantityInIssueUnit uom="KO"&gt;288.000&lt;/QuantityInIssueUnit&gt; 
  </code></pre>
  
  <p>So i have to extract KO and 288.00 and pass it to variables, i tried this:</p>
  
  <pre><code>if (!dr_art_line.Table.Columns.Contains("QuantityInIssueUnit") || 
  
      dr_art_line["QuantityInIssueUnit"].ToString().Length &lt;= 0)
                                  {
                                      QuantityInIssueUnit = 0;
                                  }
                                  else
                                  {
                                  QuantityInIssueUnit = Convert.ToDecimal(dr_art_line["QuantityInIssueUnit"]);
                                   {
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>if (!dr_art_line.Table.Columns.Contains("QuantityInIssueUnit uom") || dr_art_line["QuantityInIssueUnit uom"].ToString().Length &lt;= 0)
                              {
                                  QuantityInIssueUnit_uom = 0;
                              }
                              else
                              {
                                  QuantityInIssueUnit_uom = Convert.ToDecimal(dr_art_line["QuantityInIssueUnit uom"]);
                              }
  </code></pre>
  
  <p>But every time the QuantityInIssueUnit is 0, I know I'm doing somethig wrong in reading,
  what is the propper way to read this kind of node?</p>
  
  <p>Thanks!</p>