【发布时间】:2010-12-15 07:26:14
【问题描述】:
在 Java 中检索格式错误的 HTML 页面中具有某种类型的所有元素的最简单方法是什么?所以我想做这样的事情:
public static void main(String[] args) {
// Read in an HTML file from disk
// Retrieve all INPUT elements regardless of whether the HTML is well-formed
// Loop through all elements and retrieve their ids if they exist for the element
}
【问题讨论】:
标签: java html-parsing