Сопоставление текста с синтаксисом XPATH

Exmple feed: view-source: http://rss.packetstormsecurity.org/files/tags/exploit/

Я хочу вернуть только те разделы xml, в которых родительский узел заголовка имеет соответствующий текст в это, в этом примере текст для сопоставления - "site".

 //get feed with curl

 $doc = new SimpleXmlElement($xml, LIBXML_NOCDATA);

 //$result = $doc->xpath('//title'); //this works returns all the 's

 $result = $doc->xpath('//title[site]');                     //doesn't work
 $result = $doc->xpath('//title[text()="site"]');           //doesn't work
 $result = $doc->xpath('//title[contains(site)]');           //doesn't work
 $result = $doc->xpath('//title[contains(text(),'Site')]');  //doesn't work


 foreach ($result as $title)
 echo "$title<br />"
</code></pre></p>
         </div>
         <div class="votes-question">
            <div class="vote-count" itemprop="upvoteCount">7</div><i class="fa fa-thumbs-o-up"></i>
         </div>
         <div class="tags">
            <a href="/questions/tagged/php" class="tag"  title="php" rel="tag">php</a> <a href="/questions/tagged/xml" class="tag"  title="xml" rel="tag">xml</a> <a href="/questions/tagged/xpath" class="tag"  title="xpath" rel="tag">xpath</a> <a href="/questions/tagged/simplexml" class="tag"  title="simplexml" rel="tag">simplexml</a>         </div>
         <div class="clearfix"></div>
         <div class="action-time">
            задан hakre            <span title="24 June 2013 в 03:35 ">24 June 2013 в 03:35 </span>
         </div>
         
         <a class="s-link" href="/questions/424102/sopostavlenie-teksta-s-sintaksisom-xpath" title="поделиться">поделиться</a>
      </div>
   </div>
  <div style="height:100px;margin:10px 0px;" class="">

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- siteask before post --> <ins class="adsbygoogle"      style="display:block;height:100px"
                                                                                                                             data-ad-client="ca-pub-2355906945027976"
                                                                                                                             data-ad-slot="" data-ad-format="auto"></ins>
    <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>

    </div>
   <div class="answers" id="answers">
   
      <h2 class="pull-left"><span itemprop="answerCount">0</span> ответов</h2>
      <div class="clearfix"></div>

      <div class="answer-pager">
         <div class="pagination">
                     </div>
      </div>

            <div style="margin-top: 20px;">
          Другие вопросы по тегам:          <div class="tags" style="display: inline-block; float: none;">
         <a href="/questions/tagged/php" class="tag"  title="php" rel="tag">php</a> <a href="/questions/tagged/xml" class="tag"  title="xml" rel="tag">xml</a> <a href="/questions/tagged/xpath" class="tag"  title="xpath" rel="tag">xpath</a> <a href="/questions/tagged/simplexml" class="tag"  title="simplexml" rel="tag">simplexml</a>       </div>
        <h3 class="m-t-20">Похожие вопросы:</h3>

        <div class="related-block">
          <ul>
                          <li><div class='votes-answer green'><span class='vote-count'>78</span> <i class="fa fa-thumbs-o-up"></i></div> <a href="/questions/131613/skrytye-funkcii-php-zakrytyj" title="Скрытые функции PHP? [закрытый]">Скрытые функции PHP? [закрытый]</a> - 16 November 2012 17:08 </li>
                            <li><div class='votes-answer green'><span class='vote-count'>43</span> <i class="fa fa-thumbs-o-up"></i></div> <a href="/questions/172039/luchshij-redaktor-php-dlja-zakrytogo-vista" title="Лучший редактор PHP для [закрытого] Vista">Лучший редактор PHP для [закрытого] Vista</a> - 15 September 2008 22:49 </li>
                            <li><div class='votes-answer green'><span class='vote-count'>39</span> <i class="fa fa-thumbs-o-up"></i></div> <a href="/questions/131674/dejstvitelno-li-xslt-stoit-togo-zakrytyj" title="Действительно ли XSLT стоит того? [закрытый]">Действительно ли XSLT стоит того? [закрытый]</a> - 14 March 2011 17:13 </li>
                            <li><div class='votes-answer green'><span class='vote-count'>31</span> <i class="fa fa-thumbs-o-up"></i></div> <a href="/questions/13430/kak-rasschitat-chislo-yanvar-mesyacz-mezhdu-dvumya-datami-s-ispol-zovaniem-php-duplicate" title="как рассчитать число Январь месяц между двумя датами с использованием php [duplicate] ">как рассчитать число Январь месяц между двумя датами с использованием php [duplicate] </a> - 22 March 2017 17:23 </li>
                            <li><div class='votes-answer green'><span class='vote-count'>30</span> <i class="fa fa-thumbs-o-up"></i></div> <a href="/questions/28173/neopredelennaya-peremennaya-v-fiktivnom-php-duplicate" title="Неопределенная переменная в фиктивном PHP [duplicate] ">Неопределенная переменная в фиктивном PHP [duplicate] </a> - 12 March 2018 02:52 </li>
                            <li><div class='votes-answer green'><span class='vote-count'>30</span> <i class="fa fa-thumbs-o-up"></i></div> <a href="/questions/28168/forma-e-lektronnoj-pochty-php-zastryavshaya-v-validacii-dublikat" title="Форма электронной почты PHP, застрявшая в валидации [дубликат] ">Форма электронной почты PHP, застрявшая в валидации [дубликат] </a> - 12 March 2018 02:52 </li>
                            <li><div class='votes-answer green'><span class='vote-count'>30</span> <i class="fa fa-thumbs-o-up"></i></div> <a href="/questions/16603/php-proverit-proxodit-li-data-drugoj-dublikat" title="PHP - проверить, проходит ли дата другой [дубликат] ">PHP - проверить, проходит ли дата другой [дубликат] </a> - 29 January 2015 03:07 </li>
                          </ul>
        </div>

      </div>
   </div>
   
</div>      </div>
      <aside class="sidebar">
        <div class="awrap">

<script async src="https://yastatic.net/pcode-native/loaders/loader.js"></script>
<script>
    (yaads = window.yaads || []).push({
        id: "553274-2",
        render: "#id-553274-2"
    });
</script>
<div id="id-553274-2"></div>
          <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:inline-block;width:300px;height:600px"
     data-ad-client="ca-pub-2355906945027976"
     data-ad-slot="8038370725"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>


        </div>
      </aside>

    </div>
  </div>
  <footer class="footer">
    <div class="wrapper wrapper--sm">
      <div class="footer-navs-col">
        <div class="footer-nav footer-nav--menu">

          <div class="footer-coryright">© 2017 - 2020 Вопросы и ответы по программированию</div>
        </div>
        <div class="footer-nav footer-nav--catalog">
        </div>
      </div>
      <div class="footer-contacts-col">
        <div class="soc-widget-col">
        </div>
      </div>
      <div class="clearfix"></div>
    </div>

  </footer>

</div>

<script type="text/javascript" src="/js/ui/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="/js/ui/external/jquery.cookie.js"></script>

<script type="text/javascript" src="/js/versions/menu.ru.u1607887878.js"></script>


<script type="text/javascript" src="/js/jquery.fancybox.min.js"></script>
<script type="text/javascript" src="/js/slick.min.js"></script>
<script type="text/javascript" src="/js/jquery.maskedinput.min.js"></script>

<script type="text/javascript" src="/js/versions/scripts.ru.u1607887878.js"></script>


<!-- Yandex.Metrika counter --> <script type="text/javascript" > (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; var z = null;m[i].l=1*new Date(); for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(90030325, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); </script> <noscript><div><img src="https://mc.yandex.ru/watch/90030325" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter -->


<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-123993370-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-123993370-1');
</script>

</div>
<script type="application/ld+json">
  {
  "@context": "https://schema.org",
  "@type": "WebSite",
  "name": "Программирование - вопросы и ответы",
  "alternateName": "Программирование - вопросы и ответы",
  "url": "https://legkovopros.ru",
  "potentialAction": {
     "@type": "SearchAction",
     "target": "https://legkovopros.ru/search?search={search_term_string}",
     "query-input": "required name=search_term_string"
   }
}
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Программирование - вопросы и ответы",
  "url": "https://legkovopros.ru",
  "logo": "https://legkovopros.ru/i/logo.png",
  "email": "info@legkovopros.ru",
   "telephone": ""

}




</script>
</body>
</html>