如何读取HTML文件? [英] How to read HTML file?

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

问题描述

我正在制作一个应用程序,我想允许用户输入HTML文件的功能,然后单击按钮(即提交),结果将显示它是否具有特定控件(例如,我想检查一个复选框HTML表单上是否存在名为check1)的内容?

请帮助我如何开始

关于

I am making an application,I want to allow functionality that user gives input a HTML file and after clicking on button(ie submitting),the result will display whether it has specific control(for eg i want to check whther a checkbox named check1) is present on HTML form or not??

Kindly help me how can i start

Regards

推荐答案

您需要一个HTML解析器.从这里开始-
You need an HTML parser. Start here - html parser c#[^].


它可能会为您提供帮助,但只需进行少量修改即可满足您的要求,

另一个使用标记处理的C#旧版HTML解析器 [
It might help you, but it requires little modification to meet your requirement,

Another C# Legacy HTML Parser Using Tag Processing[^]

Hope it helps :)


[ ^ ]


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

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