-2
2つのタグの間にある特定のテキストを取得するのに問題が発生します。 私は、Text after em tag. I want to get this.
、またtext after this p tag. I also want to get this.
を取得したいと考えています。 これを行う方法はありますか?ありがとうございます。 xpathを使ってdivの後に特定のテキストを取得する方法
<article>
<h1 id='h1'>Heading 1</h1>
<img src='mypath/pictures/pic.jpg'></img>
<p></p>
<div id='div1'>
<time datetime='2016'>2016</time>
</div>
<br></br>
<em>my location, TN, United States</em>
Text after em tag. I want to get this.
<p></p>
text after this p tag. I also want to get this.
<div id='div2'>
</div>
</article>
テキストを一緒にまとめたいですか? @SaurabhGaur。 –
どちらもゲッターに –