Posted: Thu Nov 17, 2005 1:40 pm Post subject: mapping repeated fields
Newbie
Joined: 02 Nov 2005 Posts: 7
Hi, I am trying to map incoming xml to cobol copybooks. I have created mapping file to accomplish this. The schema and copybook have repeated fields. I have created message defintion for schema and copybook. The schema and copy books looks like this.
XML Schema
---------
Customer
- Name
- ItemCnt
- Items occurs 0 ---10
- itemCd
- itemDesc
Copy Book
------------
01 Customer
05 Name PIC X(20)
05 ItemCnt PIC 9(2)
05 Items occurs 0 to 20 depending on ItemCnt
10 itemCd PIC X(8)
10 itemDesc PIC X(20)
Now when i drop both the message defintion file in the mapping file. The files are created with Source created with Items[] and Items[All] and target with Items[],Items[ALL],Items[1].
For Name and itemCnt fields i have create mapping using "create mapping" menu item. But for array how do create mapping. Which nodes should i use for mapping ([] or [ALL]?). I see option for "Create loop assignment mapping". Should i use this create mapping.
Again items list could be 0 or 10. Please help. Thanks in advance for help.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum