1
<div id="studentInfo">
<p id="studentdetails">
<span>Placeofbirth:</span>
<span class="hidden" itemtype="http://xxxx.com" itemscope="">
<a itemprop="url" href="xxx.xom">
<span itemprop="title">Greg</span>
</a>
<span itemtype="http://xxxx1.com" itemscope="" itemprop="child">
<a itemprop="url" href="/c/san-diego/indpak">
<span itemprop="title">Greg is one of the Best student</span>
</a>
</span>
</span>
<span id="cat_display">
<a href="xxx.com"> Greg can be promoted </a>
</span>
Element studentname = doc.select("div p ").first();
当我这样做:我正在 格雷格·格雷格是最好的学生格雷格可以促进之一。
我只想打印:当我做p 格雷格可以促进
看起来,并尝试打印studentname.text() 它打印所有目前的案文,我一直在寻找一个特定的文本。
我该如何实现这一点。