Generation of XML file
Posted: Tue Nov 13, 2007 3:12 pm
Hi,
Per my requirement I need to generate and XML file in the following format. As you can see TAG1 and TAG2 are non-repeating and TAG3 is repeating.
<TAG1>
<TAG2></TAG2>
<TAG3></TAG3>
<TAG3></TAG3>
<TAG3></TAG3>
<TAG3></TAG3>
</TAG1>
In my XML output stage I mapped as follows
Column1 : /tag/tag1
Column2 : /tag/tag2
Column3 : /tag/tag3
But this mapping generates the file as folows. And you can see TAG2 is being repeated.
<TAG1>
<TAG2></TAG2>
<TAG3></TAG3>
<TAG2></TAG2>
<TAG3></TAG3>
<TAG2></TAG2>
<TAG3></TAG3>
<TAG2></TAG2>
<TAG3></TAG3>
</TAG1>
How can I make TAG2 as non-repeating. I am a novice as far as XML is concerned. Any help would greatly be greatly appreciated.
Per my requirement I need to generate and XML file in the following format. As you can see TAG1 and TAG2 are non-repeating and TAG3 is repeating.
<TAG1>
<TAG2></TAG2>
<TAG3></TAG3>
<TAG3></TAG3>
<TAG3></TAG3>
<TAG3></TAG3>
</TAG1>
In my XML output stage I mapped as follows
Column1 : /tag/tag1
Column2 : /tag/tag2
Column3 : /tag/tag3
But this mapping generates the file as folows. And you can see TAG2 is being repeated.
<TAG1>
<TAG2></TAG2>
<TAG3></TAG3>
<TAG2></TAG2>
<TAG3></TAG3>
<TAG2></TAG2>
<TAG3></TAG3>
<TAG2></TAG2>
<TAG3></TAG3>
</TAG1>
How can I make TAG2 as non-repeating. I am a novice as far as XML is concerned. Any help would greatly be greatly appreciated.