Handling Large XML Files

XML Files 5-7

5.6.2.1 Loading Data from an XML Schema

Use the Generic SQL KMs or the KMs specific to the other technology involved to load data from an XML database to a target or staging area database. Table 5–2 lists some examples of KMs that you can use to load from an XML source to a staging area:

5.6.2.2 Loading Data to an XML Schema

It is not advised to use an XML schema as a staging area, except if XML is the target of the interface and you wish to use the target as a staging area. In this case, it might be required to load data to an XML schema. Use the Generic SQL KMs or the KMs specific to the other technology involved to load data from a source or staging area into an XML schema. Table 5–3 lists some examples of KMs that you can use to load from a source to an XML staging area.

5.6.3 Integrating Data in XML

XML can be used as a target of an interface. The data integration strategies in XML concern loading from the staging area to XML. The IKM choice in the Interface Flow tab determines the performances and possibilities for integrating. The IKM XML Control Append integrates data into the XML schema and has an option to synchronize the data to the file. In addition to this KM, you can also use the Generic SQL KMs or the KMs specific to the other technology involved. Note that if using generic or technology-specific KMs, you must manually perform the synchronize operation to write the changes made in the schema to the XML file. Table 5–4 lists some examples of KMs that you can use to integrate data: ■ From a staging area to an XML target ■ From an XML staging area to an XML target. Note that in this case the staging area is on the XML target. Table 5–2 KMs to Load from XML to a Staging Area Staging Area KM Notes Microsoft SQL Server LKM SQL to MSSQL BULK Uses SQL Servers bulk loader. Oracle LKM SQL to Oracle Faster than the Generic LKM Uses Statistics Sybase LKM SQL to Sybase ASE BCP Uses Sybases bulk loader. All LKM SQL to SQL Generic KM to load data between an ANSI SQL-92 source and an ANSI SQL-92 staging area. Table 5–3 KMs to Load to an XML Schema Source KM Notes File LKM File to SQL Generic KM to load a file in a ANSI SQL-92 staging area. All LKM SQL to SQL Generic KM to load data between an ANSI SQL-92 source and an ANSI SQL-92 staging area.