=IMPORTXML("https://chelyabinsk.n1.ru/kupit/kvartiry/vtorichka";"//a[@class='link']/@href")
<meta content="трататамноготекста" itemprop="page_data"/>
div[@class='element most_wanted']//div[@class='info']/p[@class='name']/a[@class='js-serp-metrika']/@data-url
string(div[@class='element most_wanted']//div[@class='info']/p[@class='name']/a[@class='js-serp-metrika']/@data-url)
<div>
<p>par</p>
<strong>strong</strong>
<divd>
<p>divpar</p>
</divd>
<blockquote>
<p>bqpar <strong>bqparstrong</strong></p>
</blockquote>
</div>
//p[name(ancestor::blockquote[1]) != 'blockquote']|//strong[name(ancestor::blockquote[1]) != 'blockquote']|//blockquote
Element='<p>par</p>'
Element='<strong>strong</strong>'
Element='<p>divpar</p>'
Element='<blockquote><p>bqpar <strong>bqparstrong</strong></p></blockquote>'
<root>
<elem attr="a">a</elem>
<elem attr="b">b</elem>
<elem attr="c">c</elem>
</root>
/root
<root>
<elem attr="a">a</elem>
<elem attr="b">b</elem>
<elem attr="c">c</elem>
</root>
/root/*[@attr != 'b']
<elem attr="a">a</elem>
<elem attr="c">c</elem>
//div[starts-with(@class, 'track track_selectable') and ((number(substring-before(div[@class='track__info track__nohover']/span[3]/text(), ':')) * 60) + number(substring-after(div[@class='track__info track__nohover']/span[3]/text(), ':'))) > 200]/*[@class='track__name']//h1/a/text()
/div/aside/following-sibling::text()[normalize-space(.) != '']
//div[@class="spec"]//table/tbody/tr/td[1]
//div[@class="spec"]//table/tbody/tr/td[2]
Главная загвоздка в том, что я не понимаю, как потребовать все элементы внутри родительского дива вместе с html тегами, а элементы внутри pre без html тегов.
<div>
<p>lorem<span>1</span></p>
<p>lorem<span>2</span></p>
<pre>
test <span>t</span><span>e</span><span>x</span><span>t</span>
</pre>
</div>
/div/p
'<p>lorem<span>1</span></p>'
'<p>lorem<span>2</span></p>'
/div/pre//text()
'test '
't'
'e'
'x'
't'
''