Cannot include path=functions.xml

Jeffn
2012-06-29
2016-07-15
  • Jeffn

    Jeffn - 2012-06-29

    Hi. I am just getting started with Webharvest. I am adapting the canon product
    example. I made a few changes nowhere near the include statement, and now I am
    getting an error at the include statement..<include path="functions.xml"/>

    Can someone help?

    Thanks,

    Jeff

     
  • Selvin Fehric

    Selvin Fehric - 2012-06-30

    Put functions.xml file where your configuration file is located.

     
  • Anonymous - 2012-07-23

    download it to you pc

     
  • jomy nn

    jomy nn - 2016-07-15

    function.xml
    Please download and extract this file
    http://web-harvest.sourceforge.net/download/webharvest2b1-project.zip
    or using this code

    <?xml version="1.0" encoding="UTF-8"?>

    <config>
    <!--
    Download multi-page list of items.

        @param pageUrl       - URL of starting page
        @param itemXPath     - XPath expression to obtain single item in the list
        @param nextXPath     - XPath expression to URL for the next page
        @param maxloops      - maximum number of pages downloaded
    
        @return list of all downloaded items
     -->
    <function name="download-multipage-list">
        <return>
            <while condition="${pageUrl.toString().length() != 0}" maxloops="${maxloops}" index="i">
                <empty>
                    <var-def name="content">
                        <html-to-xml>
                            <http url="${pageUrl}"/>
                        </html-to-xml>
                    </var-def>
    
                    <var-def name="nextLinkUrl">
                        <xpath expression="${nextXPath}">
                            <var name="content"/>
                        </xpath>
                    </var-def>
    
                    <var-def name="pageUrl">
                        <template>${sys.fullUrl(pageUrl.toString(), nextLinkUrl.toString())}</template>
                    </var-def>
                </empty>
    
                <xpath expression="${itemXPath}">
                    <var name="content"/>
                </xpath>
            </while>
        </return>
    </function>
    

    </config>

     
    Last edit: jomy nn 2016-07-15

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks