Forum Discussion
I would suggest to step away from mapper and use XML Generator snap and build the XML output using velocity template.
In my opinion the XML generator gives better overview of the mapping in to the XML structure.
Attached is a sample based on your mapper mapping.
I saved your schema as member.xsd and pointed it out in the generator which then generated a sample velocity template which i modified, i guess the relationship is something that needs to be structured differently before the xml generator, since there is no sample data with clear relationships i have not included that in the example.
endor_force Thanks for the reply. I see what you're getting at with being able to visually build out the result.
What this doesn't help solve is getting nested pieces of data aligned. Where there are multiple dependents in the data, they would need to be repeating "Dependent Records" under the "Employee Record". The actual schema has a number of these, including multiple levels deep (for example, if each dependent could also have multiple 'addresses').
Related Content
- 5 months ago
- 4 years ago
- 3 years ago