Hi,
I just checked in some classes for the extractor thing.
I've implemented a very simple demo extractor that extracts data from xml 
documents by doing some configurable xpath queries. If you want to test this 
you have to enable the extractor trigger.
This is done in the Domain.xml file in the event section:

   <listener classname="org.apache.slide.extractor.ExtractorTrigger">
       <configuration>
          <extractor classname="org.apache.slide.extractor.SimpleXmlExtractor" 
uri="/files/articles/test.xml">
             <configuration>
                <instruction property="title" xpath="/article/title/text()" />
                <instruction property="summary" 
xpath="/article/summary/text()" />
             </configuration>
          </extractor>
       </configuration>
    </listener>

In this example only the document with uri = /files/articles/test.xml will be 
processed. If the content would be:

<?xml version="1.0" encoding="UTF-8" ?>
<article>
        <title>Title of article</title>
        <summary>The summary of this article</summary>
</article>

there are some new properties (title, summary) available containing the text.
If some error occurs, the file cannot be uploaded. This is done by throwing an 
extractor exception.
Any comments are welcome.
Regards,
Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to