私は持っている
<div id = top1>
<div id topsub1>
<ul class="student">
<li>
<a href="/thomas">Tom</a>
</li>
</div>
<div id topsub2>
<ul class="student">
<li>
<a href="/thomas1">Tom1</a>
</li>
</div>
</div>
href と text を取得したいので、 Elements xx= select (div div ul li) を実行しました
foreach xx for y を実行するとき、および実行する場合
string1= y.text(); //Tom String2= y.attr("href") //これは常に空です。/thomas を取得できませんか? y.attr("a[href]")) も試しました
また、 doc.select(".studentnames > a");? これは、ID=studentnames ですべての "a" が正しいことを意味しますか???