XML Input Stage
Posted: Thu Feb 26, 2009 5:19 am
Hi,
I am using xml source file in which entity
ZARTICLE has following derivation and description respectively
ZCOMMIT01.ZCOMMIT01.ZARTICLE
/ZCOMMIT01/IDOC/Z1COMMDET/ZARTICLE/text()
Assuming my XML tag input is as follows,
<ZARTICLE>ABCDEF<\ZARTICLE>
In target i want
<COL1>ABC<\COL1>
<COL2>DEF<\COL2>
I am trying to do this in XML input stage derivation only while extracting, as below
COL1
ZCOMMIT01.ZCOMMIT01.ZARTICLE[1,3]
/ZCOMMIT01/IDOC/Z1COMMDET/ZARTICLE/text()
COL2
ZCOMMIT01.ZCOMMIT01.ZARTICLE[4,6]
/ZCOMMIT01/IDOC/Z1COMMDET/ZARTICLE/text()
I am not sure if it can be done in XML input stage only,if not then i have to use transformer stage after extracting ZARTICLE and split it there.
Please let me know best possible way.
Thanks :D
I am using xml source file in which entity
ZARTICLE has following derivation and description respectively
ZCOMMIT01.ZCOMMIT01.ZARTICLE
/ZCOMMIT01/IDOC/Z1COMMDET/ZARTICLE/text()
Assuming my XML tag input is as follows,
<ZARTICLE>ABCDEF<\ZARTICLE>
In target i want
<COL1>ABC<\COL1>
<COL2>DEF<\COL2>
I am trying to do this in XML input stage derivation only while extracting, as below
COL1
ZCOMMIT01.ZCOMMIT01.ZARTICLE[1,3]
/ZCOMMIT01/IDOC/Z1COMMDET/ZARTICLE/text()
COL2
ZCOMMIT01.ZCOMMIT01.ZARTICLE[4,6]
/ZCOMMIT01/IDOC/Z1COMMDET/ZARTICLE/text()
I am not sure if it can be done in XML input stage only,if not then i have to use transformer stage after extracting ZARTICLE and split it there.
Please let me know best possible way.
Thanks :D