Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-12420

Integrate XML Parser into Scan Importer

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.7.2
    • Fix Version/s: 5.7.3
    • Impact type:
      Configuration Change
    • Upgrade notes:
      Hide
      • XML Parser feature moved from webdelib addon modules into importer modules.
      • You can now set importer profile (the couple factory/sourceNode) used by Scan Importer (use for instance the XML importer).
      • new project nuxeo-importer-scan-xml-parser is available that implement the couple factory/sourceNode that enable the new advanced XML parser and contains the component that enable them.
      Show
      XML Parser feature moved from webdelib addon modules into importer modules. You can now set importer profile (the couple factory/sourceNode) used by Scan Importer (use for instance the XML importer). new project nuxeo-importer-scan-xml-parser is available that implement the couple factory/sourceNode that enable the new advanced XML parser and contains the component that enable them.

      Description

      Scan importer feature implement a simple way to import document structure based on XML descriptor or simply binaries. The default logic of this feature is one file object = one document created in Nuxeo.

      For WebDelib addon (NXP-11791), we developed a parser with more possibilities about the parsing than one proposed into Scan Importer. For instance, one XML file parsing can create several documents. See the documentation here and here.

      You can now use the XML Parser instead default one proposed into Scan Importer, example of the contribution you have to add is given into description:

      <?xml version="1.0"?>
      <component name="org.nuxeo.ecm.platform.importer.scanimporter.xmlparser.logic.contrib">
      
        <require>org.nuxeo.ecm.platform.importer.service.jaxrs.contrib</require>
      
        <extension target="org.nuxeo.ecm.platform.importer.service.DefaultImporterComponent" point="importerConfiguration">
         <importerConfig sourceNodeClass="org.nuxeo.ecm.platform.scanimporter.processor.XMLFileSourceNode">
             <documentModelFactory documentModelFactoryClass="org.nuxeo.ecm.platform.scanimporter.processor.AdvancedScannedFileFactory" />
         </importerConfig>
        </extension>
        
        
      </component>
      
      

      A documentation of this importer will be written during this task into doc.nuxeo.com.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: