从HTML提取表格 [英] Pulling Tables from HTML

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

问题描述

你好,
我想创建一个解析器,该解析器从HTML文档中的某处提取一个表,并将每个行名分配给其对应的整数值.有谁知道如何用C#或T-SQL做到这一点?

任何帮助或提示将不胜感激.谢谢!

Hello,
I''d like to create a parser that pulls a table from somewhere in an HTML document and assigns each row name to its corresponding integer value. Does anyone know how to do this in either C# or T-SQL?

Any help or hints would be much appreciated. Thanks!

推荐答案

也许是
Maybe something here can help you in parsing the html.


您的要求没有道理.如果要在服务器端执行此操作,则可以轻松地遍历行和列并解析它们中的每一个.

如果要在客户端使用,则可以使用文档对象进入行和列.

请让我知道您为什么需要这个?
Your requirement doesnt makes sense. If you want to do it in Server side, you can easily loop through the Rows and columns and parse each of them.

If you want it in client side, you can use document object to get into row and columns.

Please let me know why you need this ?


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

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