in reply to Re^3: XML::Twig usage incomprehension
in thread XML::Twig usage incomprehension
Lets answer to all your questions and comment :
I only included 1 record in the output just to show an example of what informations I'm interested in. As my XML file does 18 megs, I've truncated it to.... Zipped XML does 1Meg so if it can help you, I can mail it to you...
I've put the full USERSQL content back for you ;)
I fully agree with you when you say the file is clumsy but it's the one I have to work on :(
The output I would like to get after parsing the demo XML tree should be exactly like this in the best case :
As you can see I'm totally new to Twig and can't understang how that thing works exactly...Thanks for you precious help.<Job Identifier="adresses"> <TABLE>APPS.RA_ADDRESSES_ALL</TABLE> <USERSQL>SELECT ADDRESS_ID,LAST_UPDATE_DATE,LAST_UPDATE +D_BY,CREATION_DATE,CREATED_BY,COUNTRY,ADDRESS1,ADDRESS2,ADDRESS3,ADDR +ESS4,CITY,POSTAL_CODE,STATE,PROVINCE,COUNTY FROM APPS.RA_ADDRESSES_AL +L WHERE LAST_UPDATE_DATE>=(SELECT LAST_LOADING_DATE from DWADMIN.I +NT_LOADINGS@#DB_LINK# WHERE TABLE_NAME = 'CUS_ADDRESSES' AND SYSTEM_ORIGIN = '#system_origin#' ) </USERSQL> <TABLE>DWADMIN.CUS_ADDRESSES</TABLE> <USERSQL>INSERT INTO DWADMIN.CUS_ADDRESSES ( ADDRESS_ID, ORIGINAL_ADDRESS_ID, ADDRESS_1,ADDRESS_2, A +DDRESS_3, ADDRESS_4,CITY,ZIP_CODE, COUNTRY,ADD_INFORMATION_1,ADD_INFORMATION_2,ADD_INFORMA +TION_3,EMAIL,CREATED_BY,CREATION_DATE, LAST_UPDATED_BY,LAST_UPDATE_DATE,SYSTEM_ORIGIN,SALES_TE +RRITORY_COUNTRY, SALES_TERRITORY_ADMIN_REGION,SALES_TERRITORY_SECTOR,SAL +ESREP_ID) VALUES (DWADMIN.CUS_ADDRESS_ID_SEQ.NEXTVAL,:1,:2,:3,:4, +:5,:6,:7,:8,:9,:10,:11,:12,:13, TO_DATE(:14, 'YYYY-MM-DD HH24:MI:SS'),: 15,TO_DATE(:16, 'YYYY-MM-DD HH24:MI:SS'),:17, +:18,:19,:20,:21) </USERSQL> </Job>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: XML::Twig usage incomprehension
by mirod (Canon) on Apr 03, 2006 at 15:22 UTC | |
by Jerome (Initiate) on Apr 03, 2006 at 15:45 UTC |