cancel
Showing results for 
Search instead for 
Did you mean: 

Deep nested xml to flat rfixed length file java mapping uisng SAX parser - (highvolume interface )

0 Kudos

Hello Expert,

Hope doing well ! request for help in java mapping section with SAX parser to handle deep nested XML to flat fixed length conversion .

I am having requirement to build interface which having deep nested xml structure(output of graphical mapping ) ( with nested uptu 7-8 level with multiple occurrence in inner structure ) which I am not able to convert using standard content conversion /message transformation bean , so achieve expected fixed length file , I need to go for java mapping with SAX parser , so request expert suggestion and help here to develop the java mapping for this requirement ,I am new to java mapping hence looking details inputs to develop this logic .

Below is structure of output of first message mapping .

MT_RecordBulk
FileHeader (1..)
RecordDetails (1..unbounded)
RecordHeader (1..1)
Field1, field2..
RecordRecords (1..unbounded)
RouteHeader (1..)
Field3, field4..
RouteDetails (1..unbounded)
CustomerRecord (1..unbounded)
field5, field6..
RecordSet (1..unbounded)
Field7, field8..
ReadingRecord (1..unbounded)
Field1, field2..
SpecialTextRecord (1..)
Field1, field2..
OpticalRecord (1..)
Field1, field2..
CustomerExtraRecord (1..1)
Field1, field2..
RouteTrailer (1..1)
Field1, field2..
CyTrailer (1..1)
Field1, field2..
FileTrailer (1..1)
Field1, field2..

appreciate your help in advance.

Thanks !

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Sugata,

Structure is mentioned in original post with files and occurrences. Please refer that as inputs payload structure.

Regards

Rajeshwar

sugata_bagchi2
Active Contributor
0 Kudos

can you share your message type xsd and a sample xml with all values?

0 Kudos

HI Sugata,

Did you get chance to have a look on my requirement by chance.. Please let me know if you need more details to clarity on required output.. Thanks

Regards,

Rajeshwar Singh