如何用C#验证html文件? [英] How do I validate a html file with C#?

查看:70
本文介绍了如何用C#验证html文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#应用程序接收一个html文件。我想分析和验证它。在输出时,它会返回一个错误列表或者我的html有效。



有没有人知道我该如何做? 我将运行 W3C标记验证服务的本地实例,并通过 API


I have a C# application that receives an html file. I want to parse and validate it. On output it will return a list of errors or that my html is valid.

Has anyone any idea how can I do this?

解决方案

I'd run a local instance of the W3C Markup Validation service and communicate with it via the API

这篇关于如何用C#验证html文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆