是否有将 HTML 文档转换为 XML 文档的 C++ 代码或库? 谢谢。
最佳答案
可以看看Tidy library
Tidy is composed from an HTML parser and an HTML pretty printer. The parser goes to considerable lengths to correct common markup errors. It also provides advice on how to make your pages more accessible to people with disabilities, and can be used to convert HTML content into XML as XHTML.
库是用 C 语言编写的。
关于c++ - 使用 C++ 将 HTML 转换为 XML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2393399/