我需要将客户的表格数据存储到数据库中。
有很多表格没有提供任何表格类(网页只直接使用Table_id)。
例子:
[table width="100%" border="0" cellpadding="0" cellspacing="0" id="AutoNumber5" style="border-collapse: collapse" bordercolor="#111111"]<br/>
[table width="100%" border="0" cellpadding="0" cellspacing="0" id="AutoNumber4" style="border-collapse: collapse" bordercolor="#111111" ]
如果有一个表格类,很明显我可以轻松解析它,但是在表格中只给出了ID而没有类。
我知道只有一个单词语法,除了...
for (Element table : doc.select("table")
也许我找不到它。如何找到它?我已经尝试过
for (Element table : doc.select("table.AutoNumber5"))
但这对我没用。
如何解决这个问题?