SearchEngineSitemap Example 3

This example builds a search engine sitemap file from the items in the datatable "includeditems" but excludes the items in the datatable "excludeditems".

Smartsite SXML CopyCode image Copy Code
<se:xmldatatable save="includeditems" resulttype="datatable">
    <se:row>
        <se:col name="nr" datatype="integer">2</se:col>
        <se:col name="priority" datatype="float">0.9</se:col>
        <se:col name="changefrequency" datatype="string">Hourly</se:col>
        <se:col name="lastmodified" datatype="datetime">2008/03/17</se:col>
    </se:row>
    <se:row><se:col>1409</se:col><se:col>0.8</se:col><se:col>Daily</se:col><se:col>2008/03/18</se:col></se:row>
    <se:row><se:col>2958</se:col><se:col>0.7</se:col><se:col>Yearly</se:col><se:col>2008/03/19</se:col></se:row>
</se:xmldatatable>

<se:xmldatatable save="excludeditems" resulttype="datatable">
    <se:row>
        <se:col name="nr" datatype="integer">2</se:col>
    </se:row>
    <se:row><se:col>3315</se:col></se:row>
    <se:row><se:col>2174</se:col></se:row>
</se:xmldatatable>

<se:searchenginesitemap hostheader="http://localhost/" username="guest">
    <se:parameters>
        <se:parameter name="urls">
            <se:includeitems channel="def" inputdata="includeditems" />
            <se:excludeitems inputdata="excludeditems" />
        </se:parameter>
    </se:parameters>
</se:searchenginesitemap>