Storing XML Data in a Table
I wan to store some XML Data in a table. The sole purpose is to break the big XML in smaller chunks so that I only work with what I need to. I am a newbie at this so any help will be appreciated.
Sample XML:
<root>
<row id="1">
<node1>hello</node1>
<node2>hola</node2>
</row>
<row id="2">
<node1>hello</node1>
<node2>hola</node2>
</row>
</root>Expected Result in the table:
ID Data
1 <row id="1"><node1>hello</node1><node2>hola</node2></row>
2 <row id="2"><node1>hello</node1><node2>hola</node2></row>My file is pretty big, so if I can do this with SQL Loader or another similar process it would be handy.
Thanks.
If anyone needs this by any chnace:
DECLARE
PROCEDURE load_xml (
p_dir IN VARCHAR2
, p_filename IN VARCHAR2
AS
l_bfile BFILE := BFILENAME (p_dir, p_filename);
l_clob_xml CLOB;
l_xml_doc DBMS_XMLDOM.domdocument;
l_top_node DBMS_XMLDOM.domnode;
l_top_node_list DBMS_XMLDOM.domnodelist;
l_claim_node DBMS_XMLDOM.domnode;
l_attr_node DBMS_XMLDOM.domnode;
l_attr_map DBMS_XMLDOM.domnamednodemap;
l_clob_data CLOB;
l_claim_id VARCHAR2 (500);
l_root_node DBMS_XMLDOM.domnode;
l_new_node DBMS_XMLDOM.domnode;
BEGIN
-- Open a file and store the data as CLOB
DBMS_LOB.createtemporary (l_clob_xml, TRUE);
DBMS_LOB.fileopen (l_bfile, DBMS_LOB.file_readonly);
DBMS_LOB.loadfromfile (l_clob_xml
, l_bfile
, DBMS_LOB.getlength (l_bfile)
DBMS_LOB.fileclose (l_bfile);
-- Close file
-- Create DOMDocument handle
l_xml_doc := DBMS_XMLDOM.newdomdocument (l_clob_xml);
l_top_node := DBMS_XMLDOM.makenode (DBMS_XMLDOM.getdocumentelement (l_xml_doc));
l_top_node_list := DBMS_XMLDOM.getchildnodes (l_top_node);
FOR x IN 0 .. DBMS_XMLDOM.getlength (l_top_node_list) - 1
LOOP
DBMS_LOB.createtemporary (l_clob_data, TRUE);
l_claim_node := DBMS_XMLDOM.item (l_top_node_list, x);
l_attr_map := DBMS_XMLDOM.getattributes (l_claim_node);
l_attr_node := DBMS_XMLDOM.getnameditem (l_attr_map, 'id');
l_claim_id := DBMS_XMLDOM.getnodevalue (l_attr_node);
l_root_node := DBMS_XMLDOM.clonenode (n => l_top_node, deep => FALSE);
l_new_node := DBMS_XMLDOM.appendchild (n => l_root_node, newchild => l_claim_node);
DBMS_XMLDOM.writetoclob (l_root_node, l_clob_data);
-- DBMS_OUTPUT.put_line (l_claim_id);
-- DBMS_OUTPUT.put_line (l_clob_data);
-- DBMS_OUTPUT.put_line ('---------------------------');
INSERT INTO temp_xml_test
(claim_id
, xml_doc
VALUES (l_claim_id
, l_clob_data
DBMS_LOB.freetemporary (l_clob_data);
END LOOP;
COMMIT;
DBMS_LOB.freetemporary (l_clob_xml);
EXCEPTION
WHEN OTHERS
THEN
ROLLBACK;
DBMS_OUTPUT.put_line (SQLCODE);
DBMS_OUTPUT.put_line (SQLERRM);
DBMS_LOB.freetemporary (l_clob_xml);
DBMS_LOB.freetemporary (l_clob_data);
RAISE;
END;
BEGIN
load_xml ('INPUT_DIR', 'Audit_082008.xml');
END;
Similar Messages
-
How to load xml data into a table
Hi,
i am a newbie. I want to insert the data of xml file into a table. I am doing this using XSU api for java.
I am using oracle 9i and jdk 1.7.
I am using OracleXmlSave class.
but i am getting following error.
java.lang.NoClassDefFoundError: oracle/jdbc2/Clob
Please help in this regard. this is my first thread.
thanks.
Edited by: 979682 on Jan 3, 2013 3:39 AMHi,
You can insert XML data from XML file to Oracle database by this script :
Hi,
For reading and inserting the data from XML file to Oracle Database :
1. CREATE A BLANK TABLE with same structure as XML file :
select * from xml_test
2. SELECT QUERY DIRECTLY ON XML FILE :
SELECT XMLTYPE(bfilename('TEST_DIR', 'data_file.xml'), nls_charset_id('UTF8')) xml_data FROM dual
3. CREATE ORACLE DIRECTORY AND PLACE XML FILE IN THIS DIRECTORY LOCATION:
--CREATE DIRECTORY TEST_DIR as '/oracle/test';
--grant all on directory TEST_DIR to public;
4. INSERT THE XML DATA IN ORACLE TABLE:
INSERT INTO xml_test(column1,coumn2)
WITH t AS (SELECT XMLTYPE(bfilename('TEST_DIR', 'attachment.xml'), nls_charset_id('UTF8')) xml_col FROM dual)
SELECT
extractValue(value(x),'/ROW/COLUMN1') column1
,extractValue(value(x),'ROW/COLUMN2') column2
FROM t,TABLE(XMLSequence(extract(t.xml_col,'/ROWSET/ROW'))) x;
I have assumed a table with 2 columns.
Regards,
Rohit Chaudhari
[email protected] -
How to store XML data into Oracle Table
I had trouble to store XML data into Oracle Table with XDK (Oracle 8.1.7 ). The error is:
C:\XDK_Java_9_2\xdk\demo\java\Test>java testInsert Dept.xml
<Line 1, Column 1>: XML-0108: (Fatal Error) Start of root element expected.
Exception in thread "main" oracle.xml.sql.OracleXMLSQLException: Start of root element expected.
at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:2263)
at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1333)
at testInsert.main(testInsert.java:8)
Here is my xml file:
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<DEPTNO>10</DEPTNO>
<DNAME>ACCOUNTING</DNAME>
<LOC>NEW YORK</LOC>
</ROW>
<ROW num="2">
<DEPTNO>20</DEPTNO>
<DNAME>RESEARCH</DNAME>
<LOC>DALLAS</LOC>
</ROW>
<ROW num="3">
<DEPTNO>30</DEPTNO>
<DNAME>SALES</DNAME>
<LOC>CHICAGO</LOC>
</ROW>
<ROW num="4">
<DEPTNO>40</DEPTNO>
<DNAME>OPERATIONS</DNAME>
<LOC>BOSTON</LOC>
</ROW>
</ROWSET>
and here is structure of table:
Name Null? Type
DEPTNO NOT NULL NUMBER(2)
DNAME VARCHAR2(14)
LOC VARCHAR2(13)
and here is my Java Code:
import java.sql.*;
import oracle.xml.sql.dml.OracleXMLSave;
public class testInsert{
public static void main(String[] args) throws SQLException{
Connection conn = getConnection();
OracleXMLSave sav = new OracleXMLSave(conn,"scott.tmp_dept");
sav.insertXML(args[0]);
sav.close();
conn.close();
private static Connection getConnection()throws SQLException{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@amt-ebdev01:1521:mydept","scott","tiger");
return conn;
Could you help me ? Thanks !The problem is that you need to pass avalid URL , Document...
Please try this code instead:
import java.net.*;
import java.sql.*;
import java.io.*;
import oracle.xml.sql.dml.OracleXMLSave;
public class testInsert
public static void main(String[] args) throws SQLException{
Connection conn = getConnection();
OracleXMLSave sav = new OracleXMLSave(conn,"scott.temp_dept");
URL url = createURL(args[0]);
sav.insertXML(url);
sav.close();
conn.close();
private static Connection getConnection()throws SQLException{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@dlsun1982:1521:jwxdk9i","scott","tiger");
return conn;
// Helper method to create a URL from a file name
static URL createURL(String fileName)
URL url = null;
try
url = new URL(fileName);
catch (MalformedURLException ex)
File f = new File(fileName);
try
String path = f.getAbsolutePath();
// This is a bunch of weird code that is required to
// make a valid URL on the Windows platform, due
// to inconsistencies in what getAbsolutePath returns.
String fs = System.getProperty("file.separator");
if (fs.length() == 1)
char sep = fs.charAt(0);
if (sep != '/')
path = path.replace(sep, '/');
if (path.charAt(0) != '/')
path = '/' + path;
path = "file://" + path;
url = new URL(path);
catch (MalformedURLException e)
System.out.println("Cannot create url for: " + fileName);
System.exit(0);
return url; -
Need load XML data into Oracle Table
Hi,
I want to load 1.5 GB size XML data to Oracle table .
My Oracle version is 10G
My Sample XML Data
<Dealer>
<Id>10004</Id> is primary column , for 10004 i have address , contact and sales details , sales details will be multiple, now i need to create a table
Some one please suggest is there anyway to do this?
<?xml version="1.0" encoding="UTF-8" ?>
- <Dealers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <Dealer>
<Id>10004</Id>
<InternalId xsi:nil="true" />
<LegalName xsi:nil="true" />
<DbaName>A-P SUPER SERVICE, INC.</DbaName>
<Client>ALLY</Client>
<Frequency>30</Frequency>
<OutstandingBalance>705354.00</OutstandingBalance>
<Active>true</Active>
<GroupId xsi:nil="true" />
<Tag>07</Tag>
<SecurityContext>045</SecurityContext>
<CreditLimit xsi:nil="true" />
<RiskRating>8+</RiskRating>
<Comment xsi:nil="true" />
- <PrimaryAccountManager>
<Id>01</Id>
<InternalId xsi:nil="true" />
<Name>UNKNOWN</Name>
<Title xsi:nil="true" />
<BusinessPhone xsi:nil="true" />
<CellPhone xsi:nil="true" />
<Email xsi:nil="true" />
</PrimaryAccountManager>
<SecondaryAccountManagers xsi:nil="true" />
- <PrimaryLocation>
<Id>01</Id>
<InternalId xsi:nil="true" />
<Name>A-P SUPER SERVICE, INC.</Name>
<Address1>338 N THIRD ST</Address1>
<Address2 xsi:nil="true" />
<City>ROGERS CITY</City>
<State>MI</State>
<Zip>49779</Zip>
<County xsi:nil="true" />
<Country xsi:nil="true" />
<Latitude xsi:nil="true" />
<Longitude xsi:nil="true" />
<Phone>9897342941</Phone>
<Fax>9897343343</Fax>
- <PrimaryContact>
<Id>01</Id>
<InternalId xsi:nil="true" />
<Name>UNKNOWN</Name>
<Title xsi:nil="true" />
<BusinessPhone xsi:nil="true" />
<CellPhone xsi:nil="true" />
<Email xsi:nil="true" />
</PrimaryContact>
<SecondaryContacts xsi:nil="true" />
</PrimaryLocation>
<SecondaryLocations xsi:nil="true" />
- <Units>
- <Unit>
<Id>1C4NJDEB7ED740827</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C4NJDEB7ED740827</SerialNumber>
<Year>2014</Year>
<Make>JEEP</Make>
<Model>COMPASS</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2014-03-04T00:00:00</FloorDate>
<FloorAmount>25344.00</FloorAmount>
<OutstandingBalance>25344.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-03-20T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C4NJRFB8ED799073</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C4NJRFB8ED799073</SerialNumber>
<Year>2014</Year>
<Make>JEEP</Make>
<Model>PATRIOT</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2014-03-21T00:00:00</FloorDate>
<FloorAmount>24172.00</FloorAmount>
<OutstandingBalance>24172.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">42</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-03-21T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C4RDJDG8DC604750</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C4RDJDG8DC604750</SerialNumber>
<Year>2013</Year>
<Make>DODG</Make>
<Model>DURANGO</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2013-10-02T00:00:00</FloorDate>
<FloorAmount>27965.00</FloorAmount>
<OutstandingBalance>25168.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>FA</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">U</Item>
<Item Name="VtmsCode" Type="System.String" />
<Item Name="VtmsDate" Type="System.DateTime" />
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C6RR7GGXES144098</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C6RR7GGXES144098</SerialNumber>
<Year>2014</Year>
<Make>RAM</Make>
<Model>TRUCK</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2014-02-27T00:00:00</FloorDate>
<FloorAmount>34268.00</FloorAmount>
<OutstandingBalance>34268.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-01-30T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C6RR7GT1ES219073</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C6RR7GT1ES219073</SerialNumber>
<Year>2014</Year>
<Make>RAM</Make>
<Model>TRUCK</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2013-11-27T00:00:00</FloorDate>
<FloorAmount>39863.00</FloorAmount>
<OutstandingBalance>39863.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-01-30T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C6RR7KT7ES312137</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C6RR7KT7ES312137</SerialNumber>
<Year>2014</Year>
<Make>RAM</Make>
<Model>TRUCK</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2014-03-07T00:00:00</FloorDate>
<FloorAmount>37962.00</FloorAmount>
<OutstandingBalance>37962.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-03-24T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>2A8HR54P08R749355</Id>
<InternalId xsi:nil="true" />
<SerialNumber>2A8HR54P08R749355</SerialNumber>
<Year>2008</Year>
<Make>CHRY</Make>
<Model>TOWN COUNTRY</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2013-12-02T00:00:00</FloorDate>
<FloorAmount>8435.00</FloorAmount>
<OutstandingBalance>8435.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>U</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String" />
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">U</Item>
<Item Name="VtmsCode" Type="System.String" />
<Item Name="VtmsDate" Type="System.DateTime" />
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>2C3CCACG3CH142608</Id>
<InternalId xsi:nil="true" />
<SerialNumber>2C3CCACG3CH142608</SerialNumber>
<Year>2012</Year>
<Make>CHRY</Make>
<Model>300</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>C</Description>
<FloorDate>2013-12-02T00:00:00</FloorDate>
<FloorAmount>14840.00</FloorAmount>
<OutstandingBalance>14840.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>U</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String" />
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">U</Item>
<Item Name="VtmsCode" Type="System.String" />
<Item Name="VtmsDate" Type="System.DateTime" />
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>2C4RC1BG2ER236662</Id>
<InternalId xsi:nil="true" />
<SerialNumber>2C4RC1BG2ER236662</SerialNumber>
<Year>2014</Year>
<Make>CHRY</Make>
<Model>TOWN COUNTRY</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2013-12-17T00:00:00</FloorDate>
<FloorAmount>30636.00</FloorAmount>
<OutstandingBalance>30636.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-01-30T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>2C4RC1BG5DR689365</Id>
<InternalId xsi:nil="true" />
<SerialNumber>2C4RC1BG5DR689365</SerialNumber>
<Year>2013</Year>
<Make>CHRY</Make>
<Model>TOWN COUNTRY</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2013-10-02T00:00:00</FloorDate>
<FloorAmount>21165.00</FloorAmount>
<OutstandingBalance>19048.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>FA</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">U</Item>
<Item Name="VtmsCode" Type="System.String" />
<Item Name="VtmsDate" Type="System.DateTime" />
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>3C6JR7DT2EG241740</Id>
<InternalId xsi:nil="true" />
<SerialNumber>3C6JR7DT2EG241740</SerialNumber>
<Year>2014</Year>
<Make>RAM</Make>
<Model>TRUCK</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2014-03-26T00:00:00</FloorDate>
<FloorAmount>29649.00</FloorAmount>
<OutstandingBalance>29649.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">42</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-03-26T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1B3CB3HA6BD106858</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1B3CB3HA6BD106858</SerialNumber>
<Year xsi:nil="true" />
<Make xsi:nil="true" />
<Model xsi:nil="true" />
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description />
<FloorDate xsi:nil="true" />
<FloorAmount>0.00</FloorAmount>
<OutstandingBalance>0.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate>2014-03-26T00:00:00</PayoffDate>
<PreviousStatus xsi:nil="true" />
<FloorPlanCode xsi:nil="true" />
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">0</Item>
<Item Name="SecondaryCode" Type="System.String" />
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">U</Item>
<Item Name="VtmsCode" Type="System.String" />
<Item Name="VtmsDate" Type="System.DateTime" />
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C3CDZCG4DN687530</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C3CDZCG4DN687530</SerialNumber>
<Year>2013</Year>
<Make>DODG</Make>
<Model>AVENGER</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>C</Description>
<FloorDate>2013-10-30T00:00:00</FloorDate>
<FloorAmount>13965.00</FloorAmount>
<OutstandingBalance>11171.50</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>FA</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String" />
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">U</Item>
<Item Name="VtmsCode" Type="System.String" />
<Item Name="VtmsDate" Type="System.DateTime" />
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C4PJMCS3EW246710</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C4PJMCS3EW246710</SerialNumber>
<Year>2014</Year>
<Make>JEEP</Make>
<Model>CHEROKEE</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2014-03-21T00:00:00</FloorDate>
<FloorAmount>29436.00</FloorAmount>
<OutstandingBalance>29436.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">42</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-03-21T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C4RJFAG3EC477904</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C4RJFAG3EC477904</SerialNumber>
<Year>2014</Year>
<Make>JEEP</Make>
<Model>GR CHEROKEE</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2014-03-24T00:00:00</FloorDate>
<FloorAmount>34359.00</FloorAmount>
<OutstandingBalance>34359.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">42</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-03-24T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C6RR7FG7ES142150</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C6RR7FG7ES142150</SerialNumber>
<Year>2014</Year>
<Make>RAM</Make>
<Model>TRUCK</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2013-09-10T00:00:00</FloorDate>
<FloorAmount>32138.00</FloorAmount>
<OutstandingBalance>32138.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-01-30T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C6RR7LG6ES308730</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C6RR7LG6ES308730</SerialNumber>
<Year>2014</Year>
<Make>RAM</Make>
<Model>TRUCK</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2014-03-13T00:00:00</FloorDate>
<FloorAmount>37613.00</FloorAmount>
<OutstandingBalance>37613.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">42</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-03-13T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>2C3KA43D29H611642</Id>
<InternalId xsi:nil="true" />
<SerialNumber>2C3KA43D29H611642</SerialNumber>
<Year>2009</Year>
<Make>CHRY</Make>
<Model>300</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>C</Description>
<FloorDate>2012-10-19T00:00:00</FloorDate>
<FloorAmount>10680.00</FloorAmount>
<OutstandingBalance>4975.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>U</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String" />
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">U</Item>
<Item Name="VtmsCode" Type="System.String" />
<Item Name="VtmsDate" Type="System.DateTime" />
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>2C4RC1BG7ER133480</Id>
<InternalId xsi:nil="true" />
<SerialNumber>2C4RC1BG7ER133480</SerialNumber>
<Year>2014</Year>
<Make>CHRY</Make>
<Model>TOWN COUNTRY</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2013-12-11T00:00:00</FloorDate>
<FloorAmount>29624.00</FloorAmount>
<OutstandingBalance>29624.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-01-30T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>2C4RDGBG9ER230454</Id>
<InternalId xsi:nil="true" />
<SerialNumber>2C4RDGBG9ER230454</SerialNumber>
<Year>2014</Year>
<Make>DODG</Make>
<Model>CARAVAN</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2014-02-25T00:00:00</FloorDate>
<FloorAmount>24205.00</FloorAmount>
<OutstandingBalance>24205.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-01-30T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>2C4RDGCG2CR321948</Id>
<InternalId xsi:nil="true" />
<SerialNumber>2C4RDGCG2CR321948</SerialNumber>
<Year>2012</Year>
<Make>DODG</Make>
<Model>CARAVAN</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2013-03-07T00:00:00</FloorDate>
<FloorAmount>16765.00</FloorAmount>
<OutstandingBalance>10209.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>U</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">U</Item>
<Item Name="VtmsCode" Type="System.String" />
<Item Name="VtmsDate" Type="System.DateTime" />
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>2C4RDGCG8ER345271</Id>
<InternalId xsi:nil="true" />
<SerialNumber>2C4RDGCG8ER345271</SerialNumber>
<Year>2014</Year>
<Make>DODG</Make>
<Model>CARAVAN</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2014-03-24T00:00:00</FloorDate>
<FloorAmount>28469.00</FloorAmount>
<OutstandingBalance>28469.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">42</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-03-24T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>3C4PDCBG3ET133327</Id>
<InternalId xsi:nil="true" />
<SerialNumber>3C4PDCBG3ET133327</SerialNumber>
<Year>2014</Year>
<Make>DODG</Make>
<Model>JOURNEY</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2013-08-30T00:00:00</FloorDate>
<FloorAmount>25378.00</FloorAmount>
<OutstandingBalance>25378.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>EI</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-01-30T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>5GAKRBED2BJ269900</Id>
<InternalId xsi:nil="true" />
<SerialNumber>5GAKRBED2BJ269900</SerialNumber>
<Year>2011</Year>
<Make>BUIC</Make>
<Model>ENCLAVE</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2013-12-17T00:00:00</FloorDate>
<FloorAmount>18917.50</FloorAmount>
<OutstandingBalance>18917.50</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>U</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">U</Item>
<Item Name="VtmsCode" Type="System.String" />
<Item Name="VtmsDate" Type="System.DateTime" />
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C3CCBBBXDN584242</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C3CCBBBXDN584242</SerialNumber>
<Year>2013</Year>
<Make>CHRY</Make>
<Model>200</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>C</Description>
<FloorDate>2012-11-27T00:00:00</FloorDate>
<FloorAmount>22796.00</FloorAmount>
<OutstandingBalance>18236.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>EI</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String" />
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-01-30T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C3CDFBB4ED682758</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C3CDFBB4ED682758</SerialNumber>
<Year>2014</Year>
<Make>DODG</Make>
<Model>DART</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>C</Description>
<FloorDate>2013-11-12T00:00:00</FloorDate>
<FloorAmount>20464.00</FloorAmount>
<OutstandingBalance>20464.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode xsi:nil="true" />
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String" />
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-01-30T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C3CDZAB7CN204652</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C3CDZAB7CN204652</SerialNumber>
<Year>2012</Year>
<Make>DODG</Make>
<Model>AVENGER</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>C</Description>
<FloorDate>2013-06-12T00:00:00</FloorDate>
<FloorAmount>12265.00</FloorAmount>
<OutstandingBalance>8584.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>FA</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String" />
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">U</Item>
<Item Name="VtmsCode" Type="System.String" />
<Item Name="VtmsDate" Type="System.DateTime" />
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C4PJMCSXEW203403</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C4PJMCSXEW203403</SerialNumber>
<Year>2014</Year>
<Make>JEEP</Make>
<Model>CHEROKEE</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2014-02-18T00:00:00</FloorDate>
<FloorAmount>30437.00</FloorAmount>
<OutstandingBalance>30437.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-02-27T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>2C4RDGCG6ER230085</Id>
<InternalId xsi:nil="true" />
<SerialNumber>2C4RDGCG6ER230085</SerialNumber>
<Year>2014</Year>
<Make>DODG</Make>
<Model>CARAVAN</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>L</Description>
<FloorDate>2014-01-16T00:00:00</FloorDate>
<FloorAmount>28285.00</FloorAmount>
<OutstandingBalance>28285.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>LT</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine xsi:nil="true" />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String">LT</Item>
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-01-30T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
- <Unit>
<Id>1C3CDZCB9EN116900</Id>
<InternalId xsi:nil="true" />
<SerialNumber>1C3CDZCB9EN116900</SerialNumber>
<Year>2014</Year>
<Make>DODG</Make>
<Model>AVENGER</Model>
<Series xsi:nil="true" />
<Color xsi:nil="true" />
<Mileage xsi:nil="true" />
<LocationId xsi:nil="true" />
<StockId xsi:nil="true" />
<Description>C</Description>
<FloorDate>2013-08-27T00:00:00</FloorDate>
<FloorAmount>23468.00</FloorAmount>
<OutstandingBalance>23468.00</OutstandingBalance>
<InvoiceNumber xsi:nil="true" />
<MaturityDate xsi:nil="true" />
<PayoffDate xsi:nil="true" />
<PreviousStatus xsi:nil="true" />
<FloorPlanCode>EI</FloorPlanCode>
<Comment xsi:nil="true" />
<ProductLine />
<ProductLineCategory xsi:nil="true" />
<ProductLineDescription xsi:nil="true" />
<Curtailments xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="IW_DAC_KEY" Type="System.Int32">33231</Item>
<Item Name="SecondaryCode" Type="System.String" />
<Item Name="ManuallyFloored" Type="System.String" xsi:nil="true" />
<Item Name="NewUsed" Type="System.String">N</Item>
<Item Name="VtmsCode" Type="System.String">50</Item>
<Item Name="VtmsDate" Type="System.DateTime">2014-01-30T00:00:00</Item>
<Item Name="BarsDeliveryDate" Type="System.DateTime" />
</LaunchExtensions>
</Custom>
</Unit>
</Units>
<Charges xsi:nil="true" />
- <Custom p7:Version="1.0" Schema="http://www.launchtechnologies.com/Integration/Service/Import/V3/Extension.xsd" xmlns:p7="http://www.launchtechnologies.com/Integration/schema/Entity/3.0/">
- <LaunchExtensions xmlns="">
<Item Name="InDefaultDate" Type="System.DateTime" />
<Item Name="Sched_Restrict" Type="System.String" />
<Item Name="FullUVE" Type="System.Boolean">false</Item>
<Item Name="HighLevelUVE" Type="System.Boolean">false</Item>
<Item Name="ExcludeSVA" Type="System.Boolean">true</Item>
<Item Name="ConcurrentAudit" Type="System.Boolean">false</Item>
<Item Name="CheckAllDemos" Type="System.Boolean">false</Item>
<Item Name="CheckAllTitles" Type="System.Boolean">false</Item>
<Item Name="CallBranch" Type="System.Boolean">false</Item>
<Item Name="TemporaryAuditComment" Type="System.String" />
<Item Name="ReleaseDaysAfterFunding" Type="System.Int32" />
<Item Name="FILLER" Type="System.Int32" />
<Item Name="Cash_24_48_Hr" Type="System.Int32" />
<Item Name="Lien_Payoff_Sched" Type="System.Boolean">false</Item>
<Item Name="Ally_Holds_Title_MCO" Type="System.Boolean">false</Item>
<Item Name="ReleaseDaysAfterSale" Type="System.Int32">3</Item>
</LaunchExtensions>
</Custom>
</Dealer>
Cheers ,
SanHope you have seen my Sample XML record, that is related to one dealer , i need to populate all the nodes, even if he have option to populate selected node that will also help.
for example
ID- 100004 contains many info like contacts, units now i need to do populate into DB , for single ID i too have many units child node ,
from table i need to the selection. i have tried with
CREATE OR REPLACE VIEW shan_v AS
SELECT *
FROM XMLTable('/Dealer'
PASSING XMLTYPE(
bfilename('DEV_CSG_DIR','dealer2.xml')
, nls_charset_id('AL32UTF8')
columns id varchar2(10) path 'Id'
--, dbaname varchar2(30) path 'DbaName'
But no luck , bcz my view doesnt have any data.
even i tired with external tables but that was too complex with large xml. -
I want to transfer Data out of an XML-File into Tables using PL/SQL. All information I found, yet, is about traversing Data from XML using Java.
Any idea of Sources about using PL/SQL?There is no announced date for the addition of the SAX interface
to the PL/SQL Parser yet. Your current option is to use the XML
SQL Utility for Java to interchange XML data.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
Premal Mehta (guest) wrote:
: Hi,
: For a ongoing project, I have to put XML data in Oracle
: tables. I have to parse the XMl and extract few key items and
: the rest of the XML is to put into CLOB column. I am looking
to
: use Event-based parser.
: I was trying to use Oracle XML parser for PL/SQL. This
parser
: does not have SAX support curently. Does anbody know by when
: this parser support SAX? It has already been promised as one
of
: the feature.
: Can somebody suggest using some other parser? Can I use
some
: parser which can be integrated within Oracle so that I wont
have
: to use ODBC etc. for accessing tables.
: Has somebody used Oracle XMl parser for Java ? Does parser
: integrate within Oracle. How can we go about the procs of
: parsing and putting results in oracle tables.
: Looking forward to quick response,
: Premal.
null -
Storing XML data in CLOB and relational tables
I would like to ask whether there is a possibility to store XML data using normal relational tables and CLOBs in the same time. For example I have some XML data (structured data) which I would like update very often and some which are only a kind of description. I found something about it in http://technet.oracle.com/tech/xml/infoocs/otnwp/about_oracle_xml_products.htm . But I do not know how to use Oracle8i views and some functionality of XML SQL Utility to retrieve XML data in one file.
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Maciej Marczukajtis ([email protected]):
I would like to ask whether there is a possibility to store XML data using normal relational tables and CLOBs in the same time. For example I have some XML data (structured data) which I would like update very often and some which are only a kind of description. I found something about it in http://technet.oracle.com/tech/xml/infoocs/otnwp/about_oracle_xml_products.htm . But I do not know how to use Oracle8i views and some functionality of XML SQL Utility to retrieve XML data in one file.<HR></BLOCKQUOTE>
Czesc Maciek,
There are some good examples with XSQL Servlet. From what I understand you have one XML file and you need to save a portion of document in relational tables and other portion in CLOB.
Yes, you can do that.
You can do it many ways. I can suggest (2).
1. Use the views
2. call your java procedure that will do
the xml processing, brake it down and insert
releval frogments into different tables/columns
null -
Hi Friends,
See the followong code which converts xml data into itab.
*& Report ZTEST_XML1 *
REPORT ZTEST_XML1 .
*PURPOSE: This program transfers XML data into SAP internal table format
*The nodes in DOM can be stored as fields in SAP Internal table
type pool definitions
TYPE-POOLS: ixml. "iXML Library Types
type definitions
TYPES: BEGIN OF t_xml_line, "Structure for holding XML data
data(256) TYPE x,
END OF t_xml_line.
DATA: l_ixml TYPE REF TO if_ixml,
l_streamfactory TYPE REF TO if_ixml_stream_factory,
l_parser TYPE REF TO if_ixml_parser,
l_istream TYPE REF TO if_ixml_istream,
l_document TYPE REF TO if_ixml_document,
l_node TYPE REF TO if_ixml_node,
l_xmldata TYPE string.
DATA: l_elem TYPE REF TO if_ixml_element,
l_root_node TYPE REF TO if_ixml_node,
l_next_node TYPE REF TO if_ixml_node,
l_name TYPE string,
l_iterator TYPE REF TO if_ixml_node_iterator.
DATA: l_xml_table TYPE TABLE OF t_xml_line, " XML Table of the structure
*t_xml_line
l_xml_line TYPE t_xml_line, " Record of structure t_xml_line
l_xml_table_size TYPE i. " XML table size
DATA: l_filename TYPE string. " String to hold filename
data: begin of i_final occurs 0,
pnumber(20),
pname(50),
pdes(70),
end of i_final.
PARAMETERS: pa_file TYPE char1024 DEFAULT 'C:\product.xml'.
Validation of XML file: Only DTD included in XML document is supported
PARAMETERS: pa_val TYPE char1 AS CHECKBOX.
start of selection
START-OF-SELECTION.
Creating the main iXML factory
l_ixml = cl_ixml=>create( ).
Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
PERFORM get_xml_table CHANGING l_xml_table_size l_xml_table.
Wrap the table containing the file into a stream.
l_istream = l_streamfactory->create_istream_itable( table = l_xml_table
size = l_xml_table_size ).
Creating a document
l_document = l_ixml->create_document( ).
Creating a Parser
l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
istream = l_istream
document = l_document ).
Validate a document
IF pa_val = 'X'.
l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
ENDIF.
Parse the stream
IF l_parser->parse( ) <> 0.
IF l_parser->num_errors( ) <> 0.
DATA: parseerror TYPE REF TO if_ixml_parse_error,
str TYPE string,
i TYPE i,
count TYPE i,
index TYPE i.
count = l_parser->num_errors( ).
WRITE: count, ' parse errors have occured:'.
index = 0.
WHILE index < count.
parseerror = l_parser->get_error( index = index ).
i = parseerror->get_line( ).
WRITE: 'line: ', i.
i = parseerror->get_column( ).
WRITE: 'column: ', i.
str = parseerror->get_reason( ).
WRITE: str.
index = index + 1.
ENDWHILE.
ENDIF.
ENDIF.
Process the document
IF l_parser->is_dom_generating( ) EQ 'X'.
PERFORM process_dom USING l_document.
ENDIF.
*& Form get_xml_table
text
<--P_L_XML_TABLE_SIZE text
<--P_L_XML_TABLE text
FORM get_xml_table CHANGING p_l_xml_table_size
p_l_xml_table.
Local variable declarations
DATA: l_len TYPE i,
l_len2 TYPE i,
l_tab TYPE tsfixml,
l_content TYPE string,
l_str1 TYPE string,
c_conv TYPE REF TO cl_abap_conv_in_ce,
l_itab TYPE TABLE OF string.
l_filename = pa_file.
Upload file from the client's workstation
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = l_filename
filetype = 'BIN'
IMPORTING
filelength = l_xml_table_size
CHANGING
data_tab = l_xml_table
EXCEPTIONS
OTHERS = 19.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Writing the XML document to the screen
CLEAR l_str1.
LOOP AT l_xml_table INTO l_xml_line.
c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data replacement
= space ).
c_conv->read( IMPORTING data = l_content len = l_len ).
CONCATENATE l_str1 l_content INTO l_str1.
ENDLOOP.
l_str1 = l_str1+0(l_xml_table_size).
SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
WRITE: /.
WRITE: /' XML File'.
WRITE: /.
LOOP AT l_itab INTO l_str1.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab IN
l_str1 WITH space.
WRITE: / l_str1.
ENDLOOP.
WRITE: /.
ENDFORM. " get_xml_table
*& Form process_dom
text
-->P_L_DOCUMENT text
FORM process_dom USING document TYPE REF TO if_ixml_document.
DATA: node TYPE REF TO if_ixml_node,
iterator TYPE REF TO if_ixml_node_iterator,
nodemap TYPE REF TO if_ixml_named_node_map,
attr TYPE REF TO if_ixml_node,
name TYPE string,
prefix TYPE string,
value TYPE string,
indent TYPE i,
count TYPE i,
index TYPE i.
node ?= document.
CHECK NOT node IS INITIAL.
ULINE.
WRITE:/.
WRITE: /' DOM-TREE'.
WRITE: /.
IF node IS INITIAL.
EXIT.
ENDIF.
Create a node iterator
iterator = node->create_iterator( ).
Get current node
node = iterator->get_next( ).
Loop over all nodes
WHILE NOT node IS INITIAL.
indent = node->get_height( ) * 2.
indent = indent + 20.
CASE node->get_type( ).
WHEN if_ixml_node=>co_node_element.
element node
name = node->get_name( ).
nodemap = node->get_attributes( ).
WRITE: / 'ELEMENT :'.
WRITE: AT indent name COLOR COL_POSITIVE INVERSE.
IF NOT nodemap IS INITIAL.
attributes
count = nodemap->get_length( ).
DO count TIMES.
index = sy-index - 1.
attr = nodemap->get_item( index ).
name = attr->get_name( ).
prefix = attr->get_namespace_prefix( ).
value = attr->get_value( ).
WRITE: / 'ATTRIBUTE:'.
WRITE: AT indent name COLOR COL_HEADING INVERSE, '=',
value COLOR COL_TOTAL INVERSE.
ENDDO.
ENDIF.
WHEN if_ixml_node=>co_node_text OR
if_ixml_node=>co_node_cdata_section.
text node
value = node->get_value( ).
WRITE: / 'VALUE :'.
WRITE: AT indent value COLOR COL_GROUP INVERSE.
ENDCASE.
Advance to next node
node = iterator->get_next( ).
ENDWHILE.
*delete adjacent duplicates from i_final.
*loop at i_final.
*write:/ i_final-pnumber,i_final-pname,i_final-pdes.
*endloop.
*if not i_final[] is initial.
*modify ztestproduct from table i_final.
*endif.
ENDFORM. " process_dom
in the above code at line no: 268 there is a method:
value = node->get_value( ).in which actual data from XML file is coming.
So the varibale "Value" contains the data.
see line no: 270:
WRITE: AT indent value COLOR COL_GROUP INVERSE.
what ever values i am getting here i want to append to a Internal table ...
Can any body tell me how to do that?
i am sure of reward points.Hai Ravi
REPORT abc.
DATA
DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
DATA : BEGIN OF itab OCCURS 0,
a(100) TYPE c,
END OF itab.
DATA: xml_out TYPE string .
DATA : BEGIN OF upl OCCURS 0,
f(255) TYPE c,
END OF upl.
DATA: xmlupl TYPE string .
FIRST PHASE
FIRST PHASE
FIRST PHASE
Fetch Data
SELECT * FROM t001 INTO TABLE t001.
XML
CALL TRANSFORMATION ('ID')
SOURCE tab = t001[]
RESULT XML xml_out.
Convert to TABLE
CALL FUNCTION 'HR_EFI_CONVERT_STRING_TO_TABLE'
EXPORTING
i_string = xml_out
i_tabline_length = 100
TABLES
et_table = itab.
Download
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filetype = 'BIN'
filename = 'd:\xx.xml'
TABLES
data_tab = itab.
SECOND PHASE
SECOND PHASE
SECOND PHASE
BREAK-POINT.
REFRESH t001.
CLEAR t001.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'D:\XX.XML'
filetype = 'BIN'
TABLES
data_tab = upl.
LOOP AT upl.
CONCATENATE xmlupl upl-f INTO xmlupl.
ENDLOOP.
XML
CALL TRANSFORMATION ('ID')
SOURCE XML xmlupl
RESULT tab = t001[].
Regards
Sreeni -
Updating an XML data in a table column.
Hi
I have a data in XML form stored in a clob column in a table. Now I need to merge an XML data (update) into this XML data.
For e.g.
XML 1:
======
<EMP>
<ROW>
<CODE>1</CODE>
<NAME>
<FIRST>abc1</FIRST>
<LAST>xyz1</LAST>
</NAME>
</ROW>
<ROW>
<CODE>2</CODE>
<NAME>
<FIRST>abc2</FIRST>
<LAST>xyz2</LAST>
</NAME>
</ROW>
<ROW>
<CODE>3</CODE>
<NAME>
<FIRST>abc3</FIRST>
<LAST>xyz3</LAST>
</NAME>
</ROW>
</EMP>
XML 2:
======
<EMP>
<ROW>
<MIDDLE>mno1</MIDDLE>
</ROW>
</EMP>
Result: XML 1 + XML 2 as given below
========
<EMP>
<ROW>
<CODE>1</CODE>
<NAME>
<FIRST>abc1</FIRST>
<MIDDLE>mno1</MIDDLE>
<LAST>xyz1</LAST>
</NAME>
</ROW>
<ROW>
<CODE>2</CODE>
<NAME>
<FIRST>abc2</FIRST>
<LAST>xyz2</LAST>
</NAME>
</ROW>
<ROW>
<CODE>3</CODE>
<NAME>
<FIRST>abc3</FIRST>
<LAST>xyz3</LAST>
</NAME>
</ROW>
</EMP>
As shown above I need to put the "Middle" tag from XML 2 into XML 1 and that to at a specific place in the XML 1 and not just append at the end of XML 1.
Any solution for?
Thanks,
Milton.There are two ways to do this:
1/ DOM API: importNode() and AdoptNode()
2/ XSLT Transformation -
I have xml data in this format and need to store in the lineitem table by generating three new values for each row ie line identifier(sys_guid),begin_date and end_date.
<LineItems>
<LineItem>
<BASE_TYPE>SRV</BASE_TYPE>
<ORDER_NUM>124089304</ORDER_NUM>
<WIP_STATUS>S</WIP_STATUS>
<WIP_STATUS_DATE>8/1/2006 8:44:55 PM</WIP_STATUS_DATE>
<order_date>6/21/2006 12:00:00 AM</order_date>
<IP_DATE>6/21/2006 12:00:00 AM</IP_DATE>
</LineItem>
<LineItem>
<BASE_TYPE>SRV</BASE_TYPE>
<ORDER_NUM>124089304</ORDER_NUM>
<WIP_STATUS>S</WIP_STATUS>
<WIP_STATUS_DATE>8/1/2006 8:44:55 PM</WIP_STATUS_DATE>
<order_date>6/21/2006 12:00:00 AM</order_date>
<IP_DATE>6/21/2006 12:00:00 AM</IP_DATE>
</LineItem>
</LineItems>
and using this method to insert
SELECT EXTRACTVALUE(VALUE(T), 'LineItem/BASE_TYPE'),
EXTRACTVALUE(VALUE(T), 'LineItem/ORDER_NUM'),
EXTRACTVALUE(VALUE(T), 'LineItem/WIP_STATUS'),
EXTRACTVALUE(VALUE(T), 'LineItem/WIP_STATUS_DATE')),
EXTRACTVALUE(VALUE(T), 'LineItem/ORDER_DATE')),
EXTRACTVALUE(VALUE(T), 'LineItem/IP_DATE')),
EXTRACTVALUE(VALUE(T), 'LineItem/SHIP_BY_DATE')),
EXTRACTVALUE(VALUE(T), 'LineItem/CUSTOMER_SRC'),
EXTRACTVALUE(VALUE(T), 'LineItem/CUSTOMER_LOC'),
EXTRACTVALUE(VALUE(T), 'LineItem/CUSTOMER_NUM'),
EXTRACTVALUE(VALUE(T), 'LineItem/ACCOUNT_TYPE'),
EXTRACTVALUE(VALUE(T), 'LineItem/OVERPACK_FLAG'),
EXTRACTVALUE(VALUE(T), 'LineItem/INTERNATIONAL_FLAG'),
EXTRACTVALUE(VALUE(T), 'LineItem/MULTIPLE_SYSTEM_TIES'),
EXTRACTVALUE(VALUE(T), 'LineItem/ORDER_TIE_NUM'),
EXTRACTVALUE(VALUE(T), 'LineItem/TIE_STATUS'),
EXTRACTVALUE(VALUE(T), 'LineItem/PK_GEN'),
EXTRACTVALUE(VALUE(T), 'LineItem/QTY_REQD'),
EXTRACTVALUE(VALUE(T), 'LineItem/WORKCENTER_ID'),
EXTRACTVALUE(VALUE(T), 'LineItem/SI_NUMBER'),
EXTRACTVALUE(VALUE(T), 'LineItem/MFG_SCHED_FACILITY_ID'),
EXTRACTVALUE(VALUE(T), 'LineItem/MFG_FACILITY_ID'),
EXTRACTVALUE(VALUE(T), 'LineItem/PILOT_NAME'),
EXTRACTVALUE(VALUE(T), 'LineItem/ENG_HOLD_FLAG'),
EXTRACTVALUE(VALUE(T), 'LineItem/SHORT_FLAG'),
EXTRACTVALUE(VALUE(T), 'LineItem/OVR_SHORTAGE'),
EXTRACTVALUE(VALUE(T), 'LineItem/USER_HOLD_FLAG'),
EXTRACTVALUE(VALUE(T), 'LineItem/SHIP_TO_ADDRESS_SEQ_NUM'),
EXTRACTVALUE(VALUE(T), 'LineItem/CALICO_REF_NUM'),
EXTRACTVALUE(VALUE(T), 'LineItem/CONFIG_ID'),
EXTRACTVALUE(VALUE(T), 'LineItem/TOTAL_UNITS_QTY'),
EXTRACTVALUE(VALUE(T), 'LineItem/ORDER_TYPE'),
EXTRACTVALUE(VALUE(T), 'LineItem/SKU'),
EXTRACTVALUE(VALUE(T), 'LineItem/SUB_ASSEMBLY_NUMBER'),
EXTRACTVALUE(VALUE(T), 'LineItem/BASE_ASM_FLAG'),
EXTRACTVALUE(VALUE(T), 'LineItem/QTY_REQ'),
EXTRACTVALUE(VALUE(T), 'LineItem/ORIGINAL_PART_NUMBER'),
EXTRACTVALUE(VALUE(T), 'LineItem/SUBSTITUTE_PART_NUMBER'),
EXTRACTVALUE(VALUE(T), 'LineItem/QTY_EXTENDED'),
EXTRACTVALUE(VALUE(T), 'LineItem/ISSUE_CODE'),
EXTRACTVALUE(VALUE(T), 'LineItem/ORIG_PART_DESC'),
EXTRACTVALUE(VALUE(T), 'LineItem/ORIG_COMMODITY_CODE'),
EXTRACTVALUE(VALUE(T), 'LineItem/ORIG_PRINT_ON_TRAVELER_FLAG'),
EXTRACTVALUE(VALUE(T), 'LineItem/ORIG_BOX_CODE'),
EXTRACTVALUE(VALUE(T), 'LineItem/SUBST_PART_DESC'),
EXTRACTVALUE(VALUE(T), 'LineItem/SUBST_COMMODITY_CODE'),
EXTRACTVALUE(VALUE(T), 'LineItem/SUBST_PRINT_ON_TRAVELER_FLAG'),
EXTRACTVALUE(VALUE(T), 'LineItem/SUBST_BOX_CODE')
BULK COLLECT INTO
V_BASE_TYPE,
V_ORDER_NUM,
V_WIP_STATUS,
V_WIP_STATUS_DATE,
V_ORDER_DATE,
V_IP_DATE,
V_SHIP_BY_DATE,
V_CUSTOMER_SRC,
V_CUSTOMER_LOC,
V_CUSTOMER_NUM,
V_ACCOUNT_TYPE,
V_OVERPACK_FLAG,
V_INTERNATIONAL_FLAG,
V_MULTIPLE_SYSTEM_TIES,
V_ORDER_TIE_NUM,
V_TIE_STATUS,
V_PK_GEN,
V_QTY_REQD,
V_WORKCENTER_ID,
V_SI_NUMBER,
V_MFG_SCHED_FACILITY_ID,
V_MFG_FACILITY_ID,
V_PILOT_NAME,
V_ENG_HOLD_FLAG,
V_SHORT_FLAG,
V_OVR_SHORTAGE,
V_USER_HOLD_FLAG,
V_SHIP_TO_ADDRESS_SEQ_NUM,
V_CALICO_REF_NUM,
V_CONFIG_ID,
V_TOTAL_UNITS_QTY,
V_ORDER_TYPE,
V_SKU#,
V_SUB_ASSEMBLY_NUMBER,
V_BASE_ASM_FLAG,
V_QTY_REQ,
V_ORIGINAL_PART_NUMBER,
V_SUBSTITUTE_PART_NUMBER,
V_QTY_EXTENDED,
V_ISSUE_CODE,
V_ORIG_PART_DESC,
V_ORIG_COMMODITY_CODE,
V_ORIG_PRINT_ON_TRAVELER_FLAG,
V_ORIG_BOX_CODE,
V_SUBST_PART_DESC,
V_SUBST_COMMODITY_CODE,
V_SUBST_PRINT_ON_TRAVELER_FLAG,
V_SUBST_BOX_CODE
FROM TABLE(XMLSEQUENCE(EXTRACT(P_PODETAILS_XML, '/LineItems/LineItem'))) T
but getting performace problem. I'm able to insert 100 lines items in 3 sec but requirement is further less.
Any help..... ????
thanks in adavance..hi..
me too having same type of XML data to be inserted into oracle table
i've to write procedure for this
can u help me plz..... -
Xml data upload into tables using loader
Hi,
I have to load XML file data into multiple tables using sqlloader. i wrote a cotrol file to execute this ,but i was not able to load the data into multiple tables at the same time, first loading table in control file is able to load the data ,rest of the load is giving error,please refer the below control file and log. Help me with your great efforts.
Have a great day!
Control file:
LOAD DATA
TRUNCATE
INTO TABLE Derivative_Security
WHEN DERIVATIVESECURITYID != ' '
FIELDS TERMINATED BY '</DerivativeSecurity>' optionally enclosed by '"'
TRAILING NULLCOLS
DUMMY1 filler char(50000) Terminated by '<DerivativeSecurity ',
DUMMY2 filler char(200) Terminated by WHITESPACE enclosed by 'FAS157Level="' and '"',
DUMMY3 filler char(200) Terminated by WHITESPACE enclosed by 'FAS157MVAdjustable="' and '"',
DUMMY4 filler char(200) Terminated by WHITESPACE enclosed by 'OriginalMV="' and '"',
DUMMY5 filler char(200) Terminated by WHITESPACE enclosed by 'FAS157MVDelta="' and '"',
DUMMY6 filler char(200) Terminated by WHITESPACE enclosed by 'FAS157AdjustedMV="' and '"',
DUMMY7 filler char(200) Terminated by WHITESPACE enclosed by 'PLCurrency="' and '"',
DERIVATIVESECURITYID Terminated by WHITESPACE enclosed by 'DerivativeSecurityID="' and '"',
METDERIVATIVEID Terminated by WHITESPACE enclosed by 'MetDerivativeID="' and '"',
MUREXTRANSNUMBER Terminated by WHITESPACE enclosed by 'MurexTransactionNumber="' and '"',
DUMMY8 filler char(200) Terminated by WHITESPACE enclosed by 'Trader="' and '"',
DUMMY9 filler char(200) Terminated by WHITESPACE enclosed by 'BuySell="' and '"',
DETAILTYPE Terminated by WHITESPACE enclosed by 'DetailType="' and '"',
DERIVATIVETYPE Terminated by WHITESPACE enclosed by 'DerivativeType="' and '"',
AL_MANAGEMENTSIDE Terminated by WHITESPACE enclosed by 'AL_ManagementSide="' and '"',
COUNTERPARTYCODE Terminated by WHITESPACE enclosed by 'CounterpartyCode="' and '"',
COUNTERPARTYNAME Terminated by WHITESPACE enclosed by 'CounterpartyName="' and '"',
CURRENCYCODE Terminated by WHITESPACE enclosed by 'CurrencyCode="' and '"',
DUMMY10 filler char(200) Terminated by WHITESPACE enclosed by 'Coupon="' and '"',
DUMMY11 filler char(200) Terminated by WHITESPACE enclosed by 'FixedFloatingIndicator="' and '"',
DUMMY12 filler char(200) Terminated by WHITESPACE enclosed by 'IndexMultiplier="' and '"',
DUMMY13 filler char(200) Terminated by WHITESPACE enclosed by 'IndexName="' and '"',
DUMMY42 filler char(200) Terminated by WHITESPACE enclosed by 'Margin="' and '"',
DUMMY14 filler char(200) Terminated by WHITESPACE enclosed by 'Comment11="' and '"',
DUMMY15 filler char(200) Terminated by WHITESPACE enclosed by 'Comment12="' and '"',
DUMMY16 filler char(200) Terminated by WHITESPACE enclosed by 'Comment13="' and '"',
DUMMY17 filler char(200) Terminated by WHITESPACE enclosed by 'Comment21="' and '"',
DUMMY18 filler char(200) Terminated by WHITESPACE enclosed by 'Comment22="' and '"',
DUMMY19 filler char(200) Terminated by WHITESPACE enclosed by 'Comment23="' and '"',
DUMMY20 filler char(2000) Terminated by WHITESPACE enclosed by 'TradeComment="' and '"',
DUMMY21 filler char(200) Terminated by WHITESPACE enclosed by 'OptionCallPut="' and '"',
DUMMY22 filler char(200) Terminated by WHITESPACE enclosed by 'OptionType="' and '"',
DUMMY23 filler char(200) Terminated by WHITESPACE enclosed by 'SettleType="' and '"',
DUMMY24 filler char(200) Terminated by WHITESPACE enclosed by 'RefISIN="' and '"',
DUMMY25 filler char(200) Terminated by WHITESPACE enclosed by 'RefObligation="' and '"',
DUMMY26 filler char(200) Terminated by WHITESPACE enclosed by 'Sensitivity="' and '"',
DUMMY27 filler char(200) Terminated by WHITESPACE enclosed by 'EffectiveConvexity="' and '"',
DUMMY28 filler char(200) Terminated by WHITESPACE enclosed by 'Vega="' and '"',
DUMMY29 filler char(200) Terminated by WHITESPACE enclosed by 'NextResetDate="' and '"',
DUMMY30 filler char(200) Terminated by WHITESPACE enclosed by 'LastResetDate="' and '"',
EFFECTIVEDURATION Terminated by WHITESPACE enclosed by 'EffectiveDuration="' and '"',
DUMMY31 filler char(200) Terminated by WHITESPACE enclosed by 'Instrument="' and '"',
DUMMY32 filler char(200) Terminated by WHITESPACE enclosed by 'IssuerCode="' and '"',
DUMMY33 filler char(200) Terminated by WHITESPACE enclosed by 'IssuerName="' and '"',
DUMMY34 filler char(200) Terminated by WHITESPACE enclosed by 'IssuerREDCode="' and '"',
DUMMY35 filler char(200) Terminated by WHITESPACE enclosed by 'Strategy="' and '"',
DUMMY36 filler char(200) Terminated by WHITESPACE enclosed by 'StrikePrice="' and '"',
MATURITYDATE Terminated by WHITESPACE enclosed by 'MaturityDate="' and '"',
DUMMY37 filler char(200) Terminated by WHITESPACE enclosed by 'TickerSymbol="' and '"',
DUMMY38 filler char(200) Terminated by WHITESPACE enclosed by 'MetPay="' and '"',
DUMMY39 filler char(200) Terminated by WHITESPACE enclosed by 'MetRec="' and '"',
DUMMY40 filler char(200) Terminated by WHITESPACE enclosed by 'Payrec="' and '"',
DUMMY41 filler char(200) Terminated by WHITESPACE enclosed by 'RiskSection="' and '"',
DUMMY54 filler char(200) Terminated by WHITESPACE enclosed by 'HedgedItem="' and '"',
DUMMY43 filler char(200) Terminated by WHITESPACE enclosed by 'ResetFrequency="' and '"',
DUMMY44 filler char(200) Terminated by WHITESPACE enclosed by 'ResetFrequencyNumber="' and '"',
DUMMY45 filler char(200) Terminated by WHITESPACE enclosed by 'PaymentFrequency="' and '"',
DUMMY46 filler char(200) Terminated by WHITESPACE enclosed by 'PaymentFrequencyNumber="' and '"',
DUMMY47 filler char(200) Terminated by WHITESPACE enclosed by 'CapFloorCoupon="' and '"',
DUMMY48 filler char(200) Terminated by WHITESPACE enclosed by 'RefIndexRate="' and '">',
DUMMY50 filler char(1000) enclosed by "<Classification=" and "/>",
DUMMY51 filler char(1000) enclosed by "<Classification=" and "/>",
DUMMY52 filler char(1000) enclosed by "<Classification=" and "/>",
DUMMY53 filler char(1000) enclosed by "<Classification=" and "/>"
INTO TABLE DERIVATIVE_POSITION
WHEN PORTFOLIOCODE != ' '
FIELDS TERMINATED BY '</NewDataSet>' optionally enclosed by '"'
TRAILING NULLCOLS
DUMMY1 filler char(65000) terminated by '<DerivativePosition ',
DERIVATIVESECURITYID TERMINATED BY WHITESPACE enclosed by 'DerivativeSecurityID="' and '"',
PORTFOLIOCODE TERMINATED BY WHITESPACE enclosed by 'PortfolioCode="' and '"',
LONGSHORTINDICATOR TERMINATED BY WHITESPACE ENCLOSED BY 'LongShortIndicator="' and '"',
FAS157Level filler char(100) TERMINATED BY WHITESPACE enclosed by 'FAS157Level="' and '"',
FAS157MVAdjustable filler char(100) TERMINATED BY WHITESPACE enclosed by 'FAS157MVAdjustable="' and '"',
OriginalMV filler char(100)TERMINATED BY WHITESPACE enclosed by 'OriginalMV="' and '"',
FAS157MVDelta filler char(100) TERMINATED BY WHITESPACE enclosed by 'FAS157MVDelta="' and '"',
FAS157AdjustedMV filler char(100)TERMINATED BY WHITESPACE enclosed by 'FAS157AdjustedMV="' and '"',
CURRENTNOTIONALLOCAL TERMINATED BY WHITESPACE enclosed by 'CurrentNotionalLocal="' and '"',
CURRENTNOTIONALUSD TERMINATED BY WHITESPACE enclosed by 'CurrentNotionalUSD="' and '"',
OPENQUANTITY TERMINATED BY WHITESPACE enclosed by 'OpenQuantity="' and '"',
ORIGINALNOTIONALLOCAL TERMINATED BY WHITESPACE enclosed by 'OriginalNotionalLocal="' and '"',
ORIGINALNOTIONALUSD TERMINATED BY WHITESPACE enclosed by 'OriginalNotionalUSD="' and '"',
ORIGINALQUANTITY TERMINATED BY WHITESPACE enclosed by 'OriginalQuantity="' and '"',
ACCRUEDINTERESTLOCAL TERMINATED BY WHITESPACE enclosed by 'AccruedInterestLocal="' and '"',
ACCRUEDINTERESTUSD TERMINATED BY WHITESPACE enclosed by 'AccruedInterestUSD="' and '"',
ACCRUEDINTERESTBASE TERMINATED BY WHITESPACE enclosed by 'AccruedInterestBase="' and '"',
CLEANMARKETVALUEENDOFDAYLOCAL TERMINATED BY WHITESPACE enclosed by 'CleanMarketValueEndOfDayLocal="' and '"',
CLEANMARKETVALUEENDOFDAYUSD TERMINATED BY WHITESPACE enclosed by 'CleanMarketValueEndOfDayUSD="' and '"',
CLEANMARKETVALUEENDOFDAYBASE TERMINATED BY WHITESPACE enclosed by 'CleanMarketValueEndOfDayBase="' and '"',
DIRTYMARKETVALUEENDOFDAYLOCAL TERMINATED BY WHITESPACE enclosed by 'DirtyMarketValueEndOfDayLocal="' and '"',
DIRTYMARKETVALUEENDOFDAYUSD TERMINATED BY WHITESPACE enclosed by 'DirtyMarketValueEndOfDayUSD="' and '"',
PREMIUMLOCAL TERMINATED BY WHITESPACE enclosed by 'PremiumLocal="' and '"',
PREMIUMUSD TERMINATED BY WHITESPACE enclosed by 'PremiumUSD="' and '"',
PREMIUMBASE TERMINATED BY WHITESPACE enclosed by 'PremiumBase="' and '"',
BIDDIES TERMINATED BY WHITESPACE enclosed by 'Biddies="' and '"',
ADDONEXPOSUREUSD TERMINATED BY WHITESPACE enclosed by 'AddOnExposureUSD="' and '"',
RegulatoryExposureUSD filler char(100) TERMINATED BY WHITESPACE enclosed by 'RegulatoryExposureUSD="' and '"',
PARCR01 filler char(100) TERMINATED BY WHITESPACE enclosed by 'PARCR01="' and '"',
FAS133DESIGNATIONGAAP TERMINATED BY WHITESPACE enclosed by 'FAS133DesignationGAAP="' and '"',
FAS133DESIGNATIONSTAT TERMINATED BY WHITESPACE enclosed by 'FAS133DesignationSTAT="' and '"',
TRADEDATE TERMINATED BY WHITESPACE enclosed by 'TradeDate="' and '"',
EffectiveDate filler char(100) TERMINATED BY WHITESPACE enclosed by 'EffectiveDate="' and '"',
ALLOCATION TERMINATED BY WHITESPACE enclosed by 'Allocation="' and '"' "round(:ALLOCATION,4)",
DUMMY36 filler char(100) enclosed by '/' and '>'
Log:
Table DERIVATIVE_SECURITY:
4079 Rows successfully loaded.
0 Rows not loaded due to data errors.
28074 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Table DERIVATIVE_POSITION:
0 Rows successfully loaded.
0 Rows not loaded due to data errors.
32153 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 248196 bytes(26 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 32153
Total logical records rejected: 0
Total logical records discarded: 28074When there are multiple tables in a control file, SQL Loader assumes the data for the first file in the second table immediately follows the last field in the first table. You probably want SQL Loader to start looking for the first column of the second table at the start of the second table. You can do this by using the POSITION clause
DUMMY51 filler char(1000) enclosed by "<Classification=" and "/>",
DUMMY52 filler char(1000) enclosed by "<Classification=" and "/>",
DUMMY53 filler char(1000) enclosed by "<Classification=" and "/>"
INTO TABLE DERIVATIVE_POSITION
WHEN PORTFOLIOCODE != ' '
FIELDS TERMINATED BY '</NewDataSet>' optionally enclosed by '"'
TRAILING NULLCOLS
DUMMY1 filler *position(1)* char(65000) terminated by '<DerivativePosition ',
DERIVATIVESECURITYID TERMINATED BY WHITESPACE enclosed by 'DerivativeSecurityID="' and '"',
PORTFOLIOCODE TERMINATED BY WHITESPACE enclosed by 'PortfolioCode="' and '"',
. -
How to loop through XML data in a table of XMLType?
Hi,
I am failry new to xml document processing in Oracle using PL/SQL.
My DB version: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
I have successfully loaded an xml document into a table using the following two statements:
1) CREATE TABLE mytable2 OF XMLType;
2) INSERT INTO mytable2 VALUES (XMLType(bfilename('IMAGE_FILE_LOC', 'IFTDISB20100330172157C002.xml'), nls_charset_id('AL32UTF8')));
Now I need to traverse through the various nodes within the xml document and extract values of elements of each node. The question I have is:
How do I loop through a node? A VALID record is enclosed within the <checkItem> </checkItem> tags.
Here is a snippet of the data in that xml document:
++++++++++++++++++++++++++++++++++++++++++++++++
<?xml version="1.0" encoding="UTF-8"?>
<bdiData>
<documentControlInfo>
<documentInfo>
<docDescription>Check images and data for Test Company, account number 1234567890</docDescription>
<docID>
<ID>20100330172157</ID>
</docID>
<docModifier>Test Company</docModifier>
<docCreateDate>2010-03-30</docCreateDate>
<docCreateTime>17:21:57-0700</docCreateTime>
<standardVersion>1.0</standardVersion>
<testIndicator>0</testIndicator>
<resendIndicator>0</resendIndicator>
</documentInfo>
<sourceInfo>
<sourceName>The Bank IFT</sourceName>
<sourceID>
<idOther>TheBankIFT</idOther>
</sourceID>
</sourceInfo>
<destinationInfo>
<destinationName>Test Company</destinationName>
<destinationID>
<idOther>FEI3592</idOther>
</destinationID>
</destinationInfo>
</documentControlInfo>
<checkItemCollection>
<collectionInfo>
<description>Items</description>
<ID>1269994919135</ID>
<Classification>
<classification>Items</classification>
</Classification>
</collectionInfo>
<checkItemBatch>
<checkItemBatchInfo>
<description>Paid Checks</description>
<ID>1269994919135</ID>
<Classification>
<classification>Paid Checks</classification>
</Classification>
</checkItemBatchInfo>
<checkItem>
<checkItemType>check</checkItemType>
<checkAmount>86468</checkAmount>
<postingInfo>
<date>2010-03-29</date>
<RT>10700543</RT>
<accountNumber>1234567890</accountNumber>
<seqNum>009906631032</seqNum>
<trancode>001051</trancode>
<amount>86468</amount>
<serialNumber>300040647</serialNumber>
</postingInfo>
<totalImageViewsDelivered>2</totalImageViewsDelivered>
<imageView>
<imageIndicator>Actual Item Image Present</imageIndicator>
<imageViewInfo>
<Format>
<Baseline>TIF</Baseline>
</Format>
<Compression>
<Baseline>CCITT</Baseline>
</Compression>
<ViewSide>Front</ViewSide>
<imageViewLocator>
<imageRefKey>201003260000738400851844567205_Front.TIF</imageRefKey>
<imageFileLocator>IFTDISB20100330172157M002.zip</imageFileLocator>
</imageViewLocator>
</imageViewInfo>
<imageViewInfo>
<Format>
<Baseline>TIF</Baseline>
</Format>
<Compression>
<Baseline>CCITT</Baseline>
</Compression>
<ViewSide>Rear</ViewSide>
<imageViewLocator>
<imageRefKey>201003260000738400851844567205_Rear.TIF</imageRefKey>
<imageFileLocator>IFTDISB20100330172157M002.zip</imageFileLocator>
</imageViewLocator>
</imageViewInfo>
</imageView>
</checkItem>
<checkItem>
<checkItemType>check</checkItemType>
<checkAmount>045</checkAmount>
<postingInfo>
<date>2010-03-29</date>
<RT>10700543</RT>
<accountNumber>1234567890</accountNumber>
<seqNum>008518967429</seqNum>
<trancode>001051</trancode>
<amount>045</amount>
<serialNumber>200244935</serialNumber>
</postingInfo>
<totalImageViewsDelivered>2</totalImageViewsDelivered>
<imageView>
<imageIndicator>Actual Item Image Present</imageIndicator>
<imageViewInfo>
<Format>
<Baseline>TIF</Baseline>
</Format>
<Compression>
<Baseline>CCITT</Baseline>
</Compression>
<ViewSide>Front</ViewSide>
<imageViewLocator>
<imageRefKey>201003290000713900851896742901_Front.TIF</imageRefKey>
<imageFileLocator>IFTDISB20100330172157M002.zip</imageFileLocator>
</imageViewLocator>
</imageViewInfo>
<imageViewInfo>
<Format>
<Baseline>TIF</Baseline>
</Format>
<Compression>
<Baseline>CCITT</Baseline>
</Compression>
<ViewSide>Rear</ViewSide>
<imageViewLocator>
<imageRefKey>201003290000713900851896742901_Rear.TIF</imageRefKey>
<imageFileLocator>IFTDISB20100330172157M002.zip</imageFileLocator>
</imageViewLocator>
</imageViewInfo>
</imageView>
</checkItem>
<checkItemBatchSummary>
<totalItemCount>1028</totalItemCount>
<totalBatchAmount>61370501</totalBatchAmount>
<totalBatchImageViewsDelivered>2056</totalBatchImageViewsDelivered>
</checkItemBatchSummary>
</checkItemBatch>
<collectionSummary>
<totalBatchCount>1</totalBatchCount>
<totalItemCount>1028</totalItemCount>
<totalCollectionAmount>61370501</totalCollectionAmount>
<totalCollectionImageViewsDelivered>2056</totalCollectionImageViewsDelivered>
</collectionSummary>
</checkItemCollection>
<documentSummaryInfo>
<totalCollectionCount>1</totalCollectionCount>
<totalBatchCount>1</totalBatchCount>
<totalItemCount>1028</totalItemCount>
<totalDocumentAmount>61370501</totalDocumentAmount>
<totalDocumentImageViewsDelivered>2056</totalDocumentImageViewsDelivered>
</documentSummaryInfo>
</bdiData>
++++++++++++++++++++++++++++++++++++++++++++++++
Any ideas and or suggestions will be greatly appreciated.
Cheers!
Edited by: user12021655 on Aug 3, 2010 1:25 PMI really need to update my blog to get the example you are looking for posted. I did a quick search on the forums for XMLTable and found a good example at {message:id=4325701}. You will want to use OBJECT_VALUE in the PASSING clause where you need to reference the column in your table.
Note: See the FAQ in the upper right for how to use the tag to wrap objects to retain formatting. Also your XML is missing closing nodes. -
How to populate the webservice XML data in to Table ODI- Webserice invoke
Hi,
I have multiple work orders in my oracle db table, That means multiple WorkOrder_Item_ID's are there in my source table. When I start transfer the data from source to Target using ODI , I need to get the information of multiple Work order Item_IDs from the Webservice response data ( XML data) of another system by calling ODI Webservice Invoke in ODI and insert the same Webservice XML response data in my source table in the corresponding Item_ID's.
My First question : How can I take the data from Webservice XML and put in to correspoding Item relevent data in to Source Table
Second question: How can I send the multiple work order item ID at the same time to the Webservice and insert the relevant item data in to Source table using ODI.
Finally this combined soure table data should be moved to Target table in ODI.. That I know.. How to do it.
Can any one please give answers for the above said two questions.
Thanks,
Rajesh
Edited by: user11226287 on Oct 30, 2009 4:40 AM
Edited by: user11226287 on Nov 1, 2009 10:44 PM
Edited by: user11226287 on Nov 1, 2009 10:59 PMI find some words in the implementation guide, it says:"To collect data from your non-Oracle ERP systems or your trading partners' systems,you model each non-Oracle ERP system or trading partner as an Oracle Applications organization and store their setup and transaction data there".
But I can't find where to model the application organization for the legacy system.
anyone can give some clues? Thanks in advance. -
Problem in coverting XML data to Interal Table.
Hello,
I have to write an application which converts an Internal Table Data to XML String and then from XML String to an Internal Table.
The reason for doing is that I am using an RFC Function module and the internal table is dynamically generated one.
But somehow the XML data is not getting converted to Internal Table.
The RFC returns Internal Table Data as XML and the Field Catalogue table
Now in the application which calls RFC, I am trying to convert XML data to a dynamic Internal table
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
CALL FUNCTION 'SCMS_BINARY_TO_STRING'
Now convert XML String to Internal table
Using FMs 'SCMS_STRING_TO_XSTRING'
"Now XString to Binary
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
CALL FUNCTION 'TEXT_CONVERT_XML_TO_SAP'
EXPORTING
i_tab_raw_data = lt_xml_data
i_totalsize = lv_file_size
TABLES
i_tab_converted_data = <fst_dyn_table>
EXCEPTIONS
conversion_failed = 1
OTHERS = 2
In the FM 'TEXT_CONVERT_XML_TO_SAP' I am getting error Conversion failed.
Now I tried with transformations.
Here also my table is a dynamically created Internal table.
TRY.
CALL TRANSFORMATION ('ID')
SOURCE root = lt_zmt_tdm_fmap
RESULT XML lv_output_str.
CATCH cx_root INTO gs_rif_ex.
gs_var_text = gs_rif_ex->get_text( ).
MESSAGE gs_var_text TYPE 'I'.
ENDTRY.
Now the lv_output_str gets populated with data
But when I call Transformation again to convert XML to internal table, it does not throw error, but does not return any data also.
TRY.
CALL TRANSFORMATION ('ID')
SOURCE XML = lv_output_str
RESULT ref = <fst_dyn_table> .
CATCH cx_root INTO gs_rif_ex.
gs_var_text = gs_rif_ex->get_text( ).
MESSAGE gs_var_text TYPE 'I'.
ENDTRY.
How can this be resolved.
As pointed I am using RFC Function module, the parameters will be
1) XML String with Internal table data
2) Field Catalogue for Internal Table to be created dynamically.
Regards,
Vikas>
Vikas Sridharan wrote:
>
> CALL TRANSFORMATION ('ID')
> SOURCE XML = lv_output_str "<============ ERRONEOUS = HERE
> RESULT ref = <fst_dyn_table> .
>
Remove the "=" sign, this code will work :
CALL TRANSFORMATION ('ID')
SOURCE XML lv_output_str
RESULT ref = <fst_dyn_table> . -
Mapping with xml-schema XML-data to relational tables
Hello,
is it possible to map data from xml documents to relational tables with xml-schema?
I mean not in nested tables but in relational tables with primary and foreign keys!
With SQL Server 2005 it is very easy, I dont believe that Oracle couldn't do this!
I searched but i cant find anything about that!
Thx
user445232indeed, oracle does this for xml schema based xmltype data, however, these underlying tables are not accessable to the application. Maybe It should for next version, so folks who like to use relational model can use it without mapping it manually.
Actually, nested tables, are the same, their underlying tables (segments) are indeed relational tables, oracle manages them internally and not visiable to the application. You can find them in the user_segments, user_objects views though. -
Is there any way to improve Query which searches XML data from a table??
hi all,
i have a table which have one column say 'colA' as Varchar(max) datatype which i save xml data and it have other cols too
Currently i am searching data inside this table using like operator
eg:
Select * from tablename where colA like ‘%<tagname>parameterstringvalue</tagname>%’
when i check with the Execution plan i could see it Takes 82% for clusterd index scan ( primarykey col
not ColA)
i added new non clusterd index for the same with include col as ColA and i found nonclusterd index scan
with same estimated I O cost and Extimated operator cost as clusterd index scan
My Question is :-
1. why didnt nonclusterd index seek come?
2. In What way i can improve perfomance for such situvation? i had seen couple of post suggesting to rewrite the Query as SELECT
* FROM myTable WHERE CONTAINS (myCol1, myCol2, "myString").
I Try creating Full text index and found cost increased compared to the original Query ?
3. As per my assumption the wild charecter ('%') in begining makes perfomance issue is there any option
or an alternative for such case?hi...i can give a skeleton
--Table Structure------------
Table1:-
(colA - int(PK),
ColB - Varchar(max),
ColC-uniquieidentifier,
ColD-datetime,
ColE-Bit)
It have clusterd index for ColA
Table2:-
(ColA-int(fk)
colF-int(pk)
colG-varchar(max),
ColH-uniqueidentifier,
colI-int,
colJ-int
ColK-date)
-----------------Query Skeleton-------------------:
select Distinct
s.colA,
s.ColB,
S.colC,
S.colD
from Table1 s with (nolock)
left outer join table2 Q with (nolock) on s.colA=q.ColA
where Q.ColA is null
and s.colB like '%<tag>sometext</tag>%'
and s.colD >='1/1/2010'
and s.colD <='1/1/2014'
i hope this will help to understand it clearly.........
Maybe you are looking for
-
Non-breaking hyphen not displayed correctly
The non-breaking hyphen (\u2011, ‑) is not displayed correctly - the wrong glyph is shown. To reproduce, do the following: 1. Start the TLF demo editor http://labs.adobe.com/technologies/textlayout/demos/ 2. Import the markup below Results: - Li
-
Three monitors with Mountain Lion
Under Snow Leopard I had two monitors connected to my iMac and all three screens worked just fine. Then I installed Mountain Lion. The Imac can only find one of my two other monitors. What can I do to access the other monitor as well?
-
REMADV: Refunds to customer handle through DBM or DBE?
We are using IDOC : PEXR2002 and message type REMADV. We have a scenario wherein we have refunds given to customers for products returned or the net amount of payment received from the customer and refunded back to customer is negative. In both the s
-
CMT with non-weblogic JMS in a session bean
I am writing a session bean which sends a JMS message using a non-weblogic JMS provider. This bean is marked for CMT and I want the JMS send to participate in this CMT as well. My understanding is that I should be able to do this by defining a <resou
-
Hi Experts, I need the functionality to predefine a pdf's name if the save button is clicked. In the window where I can browse to the destination where the pdf should be saved I want to set the filename. For example; After click on the save button th