XML parsing using XML_Plugin
Posted: Mon Oct 22, 2007 11:52 pm
Hi All
Structure for XML parsing in my job is as folows
MQ plugin----->XML i/p plugin------>transformer------>filter------>multiple xml i/p pugin
I am getting XML over MQ then I have to parse the XML. This XML structure contains an attribute named type on the root element. In above job structure in trnasformer hv to check for valid type and accoridng to type hv to pass data on different stream again using the filter plugin and again have to extract data using xml plugin according to type.
(this is because for different type of xml there is different attributes will be der so derivation for each column will be different for different xml).
in above structure i want to pass whole xml and type attribute to trnasfomer so how can i do that .... wht will be the xpath/derivation for the same in XML pluign before transformer ?or any other way to do this ?
Structure for XML parsing in my job is as folows
MQ plugin----->XML i/p plugin------>transformer------>filter------>multiple xml i/p pugin
I am getting XML over MQ then I have to parse the XML. This XML structure contains an attribute named type on the root element. In above job structure in trnasformer hv to check for valid type and accoridng to type hv to pass data on different stream again using the filter plugin and again have to extract data using xml plugin according to type.
(this is because for different type of xml there is different attributes will be der so derivation for each column will be different for different xml).
in above structure i want to pass whole xml and type attribute to trnasfomer so how can i do that .... wht will be the xpath/derivation for the same in XML pluign before transformer ?or any other way to do this ?