c++ - 使用 C++ 将 HTML 转换为 XML

标签 c++ html xml

是否有将 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/

相关文章:

c++ - 没有重载函数 "search"的实例与参数列表匹配

c++ - 在 C++ 中重用内存

c++ - 如何在 VSCode 中可视化 ndarray Rust?

python - 如何解析 HTML 表格,其行在 <tr> 标签下同时包含 <th> 和 <td> 标签?

c++ - 如何将我的 C++ 应用程序连接到 node.js 服务器以获取 JSON 数据?

javascript - 使用鼠标滚轮放大图像上的特定点

javascript - jQuery + CSS : How to detect the first "move out" of cursor out of an element?

ios - iOS 中的 libxml2.dylib 和 libxml2.2.dylib 有什么区别

android - 如何创建一个占屏幕宽度 4/5 android 的布局

c# - 通过发送 XmlEnumAttribute C# 获取枚举元素?