Originally posted by: SystemAdmin
I am receiving an xml file that is improperly structured for the process that requires the data. The process expects one instance of the data. However, I receive multiple records with repetitive data and some unique data. This all needs to be combined to send to another function to be processed. The following (Example 1) is a representation of the file. CaseNum is the key identifier. However, In order to properly process the data in its entirety I need the format to look like the second example. The CaseData, Case Person and ProgData is the same data in each correlating record and some records have the same APData.
Does anyone have a suggestion on how to handle this scenario? I do not have control over the creation of the incoming file so that is not an option. The on thought I had was to pre-parse the file and create an index file for each case number and have that to key off for direct data look up. What are your thoughts?
Example 1:
FILE 0:1
Record 0:M
..RecordHeader 0:1
..RecordBody 0:1
....CaseData 0:1
......CaseNum
......etc
......CasePerson 0:M
........Name
........etc
....ProgData 0:M
......Type
......etc
....APData 0:1
......A 0:1
........etc
......B 0:1
........etc
........B1 0:1
..........etc
......C 0:1
........etc
Example 2:
FILE 0:1
Record 0:M
..RecordHeader 0:1
..RecordBody 0:1
....CaseData 0:1
......CaseNum
......etc
......CasePerson 0:M
........Name
........etc
....ProgData 0:M
......Type
......etc
....APData 0:M
......A 0:1
........etc
......B 0:1
........etc
........B1 0:M
..........etc
......C 0:1
........etc
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange