<分区>
我正在寻找一个库/方法来解析一个 html 文件,它比通用的 xml 解析库具有更多特定于 html 的特性。
<分区>
我正在寻找一个库/方法来解析一个 html 文件,它比通用的 xml 解析库具有更多特定于 html 的特性。
最佳答案
This is an agile HTML parser that builds a read/write DOM and supports plain XPATH or XSLT (you actually don't HAVE to understand XPATH nor XSLT to use it, don't worry...). It is a .NET code library that allows you to parse "out of the web" HTML files. The parser is very tolerant with "real world" malformed HTML. The object model is very similar to what proposes System.Xml, but for HTML documents (or streams).
关于c# - 在 C# 中解析 html 的最佳方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56107/