XML reader

The XML reader:

  • Reads XML input files.
  • Transforms them into Interplay Objects.
  • Saves these objects in the database.

The Java class called DocumentReaderSTImpl must be declared in the interplayPublicContext.xml file as follows:

<bean id="documentReaderSH"

class="com.axway.interplay.core.externaldata.importdata.readers.DocumentReaderSTImpl"

scope="prototype">

<property name="dataSource" ref="jdbcDataSource" />

<property name="readerType" value="XML"/>

</bean>

The reader uses the:

  • Properties file that contains information that will be transformed into properties of the Collection associated with the imported document.
  • Data file that contains the actual data that should form the Collection, the Objects and their elements.
  • Errors file that contains all the errors related to the imported data. Each error must include an XPath that enables the reader to identify the Object or the Element that this error refers to.

Related Links