freegink:
另一个模板,这个是一个页面多条数据的,刚才那个是一个页面一条数据的
[阅读: 534] 2007-09-07 02:25:19
<?xml version="1.0" encoding="UTF-8"?>
<HtmlTemplate CreateDate="2007-8-3 18:18:13" Title="中国基金网" Author="ebrain" Homepage="http://data.cnfund.cn/jzdata/qbjj.htm" Encoding="gb2312" Memo="" ModifyDate="2007-8-6 14:16:40">
<UrlRule>
<Urls>
<Url>http://data.cnfund.cn/jzdata/qbjj.htm</Url>
</Urls>
</UrlRule>
<Variables>
<Variable Name="No" VarType="Text" DefaultValue="">
</Variable>
<Variable Name="Code" VarType="Text" DefaultValue="">
</Variable>
<Variable Name="Name" VarType="Text" DefaultValue="">
</Variable>
<Variable Name="NetValue" VarType="Text" DefaultValue="">
</Variable>
<Variable Name="AYield" VarType="Text" DefaultValue="">
</Variable>
<Variable Name="ANetValue" VarType="Text" DefaultValue="">
</Variable>
<Variable Name="DayValue" VarType="Text" DefaultValue="">
</Variable>
<Variable Name="DayRatio" VarType="Text" DefaultValue="">
</Variable>
<Variable Name="WeekRatio" VarType="Text" DefaultValue="">
</Variable>
<Variable Name="MonthRatio" VarType="Text" DefaultValue="">
</Variable>
</Variables>
<Templates>
<Template Pattern="<table width="780" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8E8E8" >((?:.|\n)*?)</table>" ParentMatchIndex="0" ParentGroupIndex="1" StartMatch="0" EndMatch="0">
<Template Pattern="<tr bgcolor="#FFFFFF" class="lh21">((?:.|\n)*?)</tr>" ParentMatchIndex="0" ParentGroupIndex="1" StartMatch="0" EndMatch="0">
<Template Pattern="<td(?:.*?)>((?:.|\n)*?)</td>" ParentMatchIndex="-1" ParentGroupIndex="1" StartMatch="0" EndMatch="0" Commit="True">
<Template Pattern="<a(?:.*?)>((?:.|\n)*?)</a>" ParentMatchIndex="1" ParentGroupIndex="1" StartMatch="0" EndMatch="0">
<Assignment Variable="Code" MatchIndex="0" GroupIndex="1" />
</Template>
<Template Pattern="<a(?:.*?)>((?:.|\n)*?)</a>" ParentMatchIndex="2" ParentGroupIndex="1" StartMatch="0" EndMatch="0">
<Assignment Variable="Name" MatchIndex="0" GroupIndex="1" />
</Template>
<Template Pattern="<font(?:.*?)>((?:.|\n)*?)</font>" ParentMatchIndex="6" ParentGroupIndex="1" StartMatch="0" EndMatch="0">
<Assignment Variable="DayValue" MatchIndex="0" GroupIndex="1" />
</Template>
<Template Pattern="<font(?:.*?)>((?:.|\n)*?)</font>" ParentMatchIndex="7" ParentGroupIndex="1" StartMatch="0" EndMatch="0">
<Assignment Variable="DayRatio" MatchIndex="0" GroupIndex="1" />
</Template>
<Template Pattern="<font(?:.*?)>((?:.|\n)*?)</font>" ParentMatchIndex="8" ParentGroupIndex="1" StartMatch="0" EndMatch="0">
<Assignment Variable="WeekRatio" MatchIndex="0" GroupIndex="1" />
</Template>
<Template Pattern="<font(?:.*?)>((?:.|\n)*?)</font>" ParentMatchIndex="9" ParentGroupIndex="1" StartMatch="0" EndMatch="0">
<Assignment Variable="MonthRatio" MatchIndex="0" GroupIndex="1" />
</Template>
<Assignment Variable="No" MatchIndex="0" GroupIndex="1" />
<Assignment Variable="NetValue" MatchIndex="3" GroupIndex="1" />
<Assignment Variable="AYield" MatchIndex="4" GroupIndex="1" />
<Assignment Variable="ANetValue" MatchIndex="5" GroupIndex="1" />
</Template>
</Template>
</Template>
</Templates>
</HtmlTemplate>