【发布时间】:2011-07-03 17:44:45
【问题描述】:
<?xml version="1.0" encoding="UTF-8"?>
<Advanced_IP_scanner>
<row ip="10.10.1.4" status="1" name="remote003.domain.local" has_http="0" has_https="0" has_ftp="0" has_radmin_1="0" has_radmin_2="0" has_radmin_3="0" has_radmin_4="0">
<share name="ADMIN$"/>
<share name="C$"/>
<share name="IPC$"/>
</row>
<row ip="10.10.1.12" status="1" name="remote005.domain.local" has_http="0" has_https="0" has_ftp="0" has_radmin_1="0" has_radmin_2="0" has_radmin_3="0" has_radmin_4="0">
<share name="ADMIN$"/>
<share name="C$"/>
<share name="IPC$"/>
</row>
</Advanced_IP_scanner>
如何将上述 XML 转换为简单的 HTML 表格以列出所有行和行标题,以便我可以在我的网页上显示。
【问题讨论】:
-
您是否考虑过使用XSLT?
-
@Donut,您应该将其发布为答案。因为这正是他们需要关注的。
标签: .net xml xml-parsing