Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have some problem with flat file schema wizard.
The flat file instance I have as input looks like this:

Indicator ... x\r\n
HEAD ........ x\r\n
ITEM ........ x\r\n
ITEM ........ x\r\n
HEAD ........ x\r\n
ITEM ........ x\r\n
ITEM ........ x\r\n
ITEM ........ x\r\n
...
HEAD ........ x\r\n
ITEM ........ x\r\n
ITEM ........ x\r\n
...


As you can see, both HEAD and ITEM is looping, and need to be repeating records.
If I follow the wizzard I can valdidate it, but the generated xml stops with the second HEAD. So the xml looks like this:

HTML
<root>
<indocator>
 <indocator_child1>....</indocator_child1>
 </indocator>
<HEAD>
 <HEAD_Child1>...</HEAD_Child1>
 </HEAD>
<item>
 <items_child1_child1>....</items_child1_child1>
</item>
<item>
 <items_child1_child1>...</items_child1_child1>
</item>
 </root>


So as you can see, it will not loop the HEAD record, only the first ITEMS.

Can someone help?

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 22-Sep-11 2:40am
v2
Comments
OriginalGriff 22-Sep-11 8:41am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900