title: MS.Internal.Xml.Xpath.XpathSelectionIterator instead of value of text node
body: <p>Why Am I getting 
  MS.Internal.Xml.Xpath.XpathSelectionIterator
  instead of the value of a text node
  on this line of code</p>
  
  <pre><code>Dim encoding As New System.Text.UTF8Encoding(True)
  Dim reader As New System.IO.StreamReader(temparray(0).ToString, encoding)
  Dim x As XPathDocument = New XPathDocument(reader)
  reader.Close() '?
  Dim nav As XPathNavigator
  nav = x.CreateNavigator()
  nav.Evaluate("//*[name()='mcd-Lol'][*[name()='mcd-Number' and text()='1'] and *[name()='mcd-Tamanho' and text()='2']]//*[name()='mcd-Den']/text()")
  </code></pre>
  
  <p>whereas in this online tester
  <a href="http://codebeautify.org/Xpath-Tester" rel="nofollow">http://codebeautify.org/Xpath-Tester</a>
  it works pwefectly?</p>
  
  <p>The Xml only has text nodes and all with namespaces.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"   xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"    xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
       xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
  xmlns:mcd="urn:acss:ccf:facturacaoelectronica:schema:xsd:Normalizados"&gt;
  &lt;ext:UBLExtensions&gt;
  &lt;ext:UBLExtension&gt;
  &lt;ext:ExtensionVersionID&gt;NormalizadosExtension:1.0&lt;/ext:ExtensionVersionID&gt;
  &lt;ext:ExtensionContent&gt;
  &lt;mcd:NormalizadosExtension&gt;
  &lt;mcd:TotalCare&gt;134.49&lt;/mcd:TotalCare&gt;
  -&lt;mcd:Lol&gt;
  &lt;mcd:Number&gt;1&lt;/mcd:Number&gt;
  &lt;mcd:Tamanho&gt;2&lt;/mcd:Tamanho&gt;
  &lt;mcd:Area&gt;Z&lt;/mcd:Area&gt;
  &lt;mcd:TotalCare&gt;124.94&lt;/mcd:TotalCare&gt;
  -&lt;mcd:Qual&gt;
  &lt;mcd:Area&gt;Z&lt;/mcd:Area&gt;
  &lt;mcd:NumeroQual&gt;1040192667866500&lt;/mcd:NumeroQual&gt;
  &lt;mcd:Data&gt;2011-11-29&lt;/mcd:Data&gt;
  -&lt;mcd:Care&gt;
  &lt;mcd:NumeroLinha&gt;1&lt;/mcd:NumeroLinha&gt;
  &lt;mcd:Den&gt;facial&lt;/mcd:Den&gt;
  &lt;mcd:Quant&gt;1&lt;/mcd:Quant&gt;
  &lt;/mcd:Care&gt;
  ...
  &lt;/mcd:Qual&gt;
  ...
  &lt;/mcd:Lol&gt;
  </code></pre>
  
  <p>Thanks</p>