1. Create required data
- CREATE TABLE "TEST"
- (
- "ID"NUMBERNOT NULLENABLE,
- "NAME"VARCHAR2 (50 BYTE)NOT NULLENABLE,
- "AGE"NUMBERNOT NULLENABLE,
- "DEPT"VARCHAR2 (50 BYTE)NOT NULLENABLE,
- CONSTRAINT "TEST_PK" PRIMARY KEY("ID") ENABLE
- )
XML file to be imported into the database
- <?Xml Version="1.0" Encoding=UTF-8" ?>
- <List>
- <Persons>
- <Id>001</Id>
- <Name>Zhang San</Name>
- <Age>34</Age>
- <Dept>Sales Department</Dept>
- </Persons>
- <Persons>
- <Id>002</Id>
- <Name>Li Si</Name>
- <Age>25</Age>
- <Dept>Sales Department</Dept>
- </Persons>
- <Persons>
- <Id>003</Id>
- <Name>James</Name>
- <Age>30</Age>
- <Dept>Sales Department</Dept>
- </Persons>
- </List>
2. Create a fusion web application --> ImpXML
Create a VO object based on the test table. Because we want to import data to the table, this VO object should have no data at first, so we need to set it in the query.
Where 1 = 0 query condition, so that the initial row set is empty. For example: