<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic use many types in nuxeo-scan-importer in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/use-many-types-in-nuxeo-scan-importer/m-p/328072#M15073</link>
    <description>&lt;P&gt;I'm using nuxeo-scan-importer to import documents using XML files, i've tried it with one type, now i want to be able map many type of document but i don't know how to indicates that those XML files correspond to this type of document. Any suggestions ?
I’ve attached my scan-importer-config.xml file.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2015 10:25:30 GMT</pubDate>
    <dc:creator>ITShine_</dc:creator>
    <dc:date>2015-07-29T10:25:30Z</dc:date>
    <item>
      <title>use many types in nuxeo-scan-importer</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/use-many-types-in-nuxeo-scan-importer/m-p/328072#M15073</link>
      <description>&lt;P&gt;I'm using nuxeo-scan-importer to import documents using XML files, i've tried it with one type, now i want to be able map many type of document but i don't know how to indicates that those XML files correspond to this type of document. Any suggestions ?
I’ve attached my scan-importer-config.xml file.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 10:25:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/use-many-types-in-nuxeo-scan-importer/m-p/328072#M15073</guid>
      <dc:creator>ITShine_</dc:creator>
      <dc:date>2015-07-29T10:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: use many types in nuxeo-scan-importer</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/use-many-types-in-nuxeo-scan-importer/m-p/328073#M15074</link>
      <description>&lt;P&gt;Hello ITShine !&lt;/P&gt;
&lt;P&gt;In your configuration file, you have those lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;targetLeafType&amp;gt;plan&amp;lt;/targetLeafType&amp;gt;
&amp;lt;!--
  Or a dynamic one by defining a class that implements the DocumentTypeMapper interface
        &amp;lt;targetLeafTypeMapper&amp;gt;org.nuxeo.platform.scanimporter.tests.SampleMapper&amp;lt;/targetLeafTypeMapper&amp;gt;
        
--&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You chose to use a static value for the document/leaf type (plan) with the &lt;CODE&gt;targetLeafType&lt;/CODE&gt; attribute.
But you could have chosen a dynamic value with the &lt;CODE&gt;targetLeafTypeMapper&lt;/CODE&gt; attribute: in this case, as indicated in the above comment, you have to specify a class that implements the &lt;CODE&gt;DocumentTypeMapper&lt;/CODE&gt; interface =&amp;gt; that's what you need to do to "use many types" with the Scan importer.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 12:37:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/use-many-types-in-nuxeo-scan-importer/m-p/328073#M15074</guid>
      <dc:creator>Manon_Lumeau</dc:creator>
      <dc:date>2015-07-29T12:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: use many types in nuxeo-scan-importer</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/use-many-types-in-nuxeo-scan-importer/m-p/328074#M15075</link>
      <description>&lt;P&gt;It's working now, thank you&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 16:06:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/use-many-types-in-nuxeo-scan-importer/m-p/328074#M15075</guid>
      <dc:creator>ITShine_</dc:creator>
      <dc:date>2015-07-29T16:06:01Z</dc:date>
    </item>
  </channel>
</rss>

