Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想解析一些 HTML 以找到一些属性/标签等的值。
你推荐什么 HTML 解析器?有什么优点和缺点吗?
NekoHTML、TagSoup和JTidy将允许您解析 HTML,然后使用 XPath 等 XML 工具进行处理。
我尝试过非常简单的HTML Parser。
您需要对 HTML 进行完整解析吗?如果您只是在内容中查找特定值(特定标记/参数),那么一个简单的正则表达式可能就足够了,而且可能会更快。