我如何在Jsoup中标记儿童选择

时间:2014-05-13 21:18:20

标签: java html html-parsing jsoup

enter image description here

如何在此HTML中选择已标记的子项。 与子列表我只选择从索引到索引或? 还有另一种选择的可能吗?

由于

1 个答案:

答案 0 :(得分:0)

我已经解决了删除问题。 还有更好的解决方案吗?我已经这样做了

Elements childrenSub2_L1 = childNewSub2.children();
       childrenSub2_L1.remove(1);
       childrenSub2_L1.remove(2);
       childrenSub2_L1.remove(childrenSub2_L1.size()-1);
相关问题