System Requirements Installation and Configuration

XML Files 5-3 2. Creating a Physical Schema for XML

5.3.1 Creating an XML Data Server

An XML data server corresponds to one XML file that is accessible to Oracle Data Integrator.

5.3.1.1 Creation of the Data Server

Create a data server for the XML technology using the standard procedure, as described in Creating a Data Server of the Oracle Fusion Middleware Developers Guide for Oracle Data Integrator. This section details only the fields required or specific for defining a File data server: 1. In the Definition tab: ■ Name : Name of the data server that will appear in Oracle Data Integrator. ■ UserPassword : These fields are not used for XML data servers. 2. In the JDBC tab, enter the values according to the driver used: ■ JDBC Driver : com.sunopsis.jdbc.driver.xml.SnpsXmlDriver ■ JDBC URL : jdbc:snps:xml?[property=valueproperty=value...] Table 5–1 lists the key properties of the Oracle Data Integrator Driver for XML. These properties can be specified in the JDBC URL. See Appendix B, Oracle Data Integrator Driver for XML Reference for a detailed description of these properties and for a comprehensive list of all properties. Table 5–1 JDBC Driver Properties Property Value Notes f XML File location XML file name. Use slash in the path name instead of back slash \. It is possible to use an HTTP, FTP or File URL to locate the file. Files located by URL are read-only. d DTDXSD File location Description file: This file may be a DTD or XSD file. It is possible to use an HTTP, FTP or File URL to locate the file. Files located by URL are read-only. Note that when no DTD or XSD file is present, the relational schema is built using only the XML file content. It is not recommended to reverse-engineer the data model from such a structure as one XML file instance may not contain all the possible elements described in the DTD or XSD, and data model may be incomplete. re Root element Name of the element to take as the root table of the schema. This value is case sensitive. This property can be used for reverse-engineering for example a specific message definition from a WSDL file, or when several possible root elements exist in a XSD file. ro true | false If true, the XML file is opened in read only mode. s schema name Name of the relational schema where the XML file will be loaded. If this property is missing, a schema named after the five first letters of the XML file name will automatically be created. This schema will be selected when creating the physical schema under the XML data server.