title: HTML Agility and Powershell (chech contains xPath)
body: <p>I try to check containing &quot;span iteamprop&quot; in div with class = f6 color-text-secondary mt-2 using the following command, but it doesn't work:</p>
  <pre><code>$paragraphs = $doc.DocumentNode.SelectNodes(&quot;//div[@class='f6 color-text-secondary mt-2' and contains(//span[@itemprop])&quot;)[$i].Select()
      if ($paragraphs) {
          $language = $doc.SelectNodes(&quot;//span[@class='d-inline-block ml-0 mr-3']//span[@itemprop]&quot;)[$i].InnerText
      }else{
          $language = $null
      }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/To0gb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/To0gb.png" alt="ghfghfgh" /></a></p>