collector-quotest-mk

<config charset="utf-8">
<var-def name="start">
<html-to-xml>
<http url="http://www.forexpros.com/quotes/single-currency-crosses" charset="utf-8" />
</html-to-xml>
</var-def>
<var-def name="ulList">
<xpath expression="//div[@id='cross_rates_container']">
<var name="start" />
</xpath>
</var-def>
<file action="write" path="/home/administrator/mcc_workspace/webharvest/soft/exe/tianya/siteboards.xml" charset="utf-8">
<![CDATA[ <site> ]]>
<loop item="item" index="i">
<list>
<var name="ulList" />
</list>
<body>
<xquery>
<xq-param name="item">
<var name="item" />
</xq-param>
<xq-expression><![CDATA[
declare variable $item as node()* external;
<test>
<doctest>
{ for $td in $item//tr return $td }
</doctest>
</test>
]]></xq-expression>
</xquery>
</body>
</loop>
<![CDATA[ </site> ]]>
</file>
</config>

posted on 2012-11-25 00:12  adolfmc  阅读(214)  评论(0编辑  收藏  举报