Hi,
Source format:
<d1 name="a1">
<d2 name="b1">
<d3 name="c1"/>
</d2>
<d2 name="b2">
<d3 name="c2"/>
</d2>
</d1>
<d1 name="a2">
<d2 name="b3">
<d3 name="c3"/>
<d3 name="c4"/>
</d2>
</d1>
Output format:
<row d1="a1" d2="b1" d3="c1" />
<row d1="a1" d2="b2" d3="c2" />
<row d1="a2" d2="b3" d3="c3" />
<row d1="a2" d2="b3" d3="c4" />
The twist is that the source xml is created dynamic and any tag can be used to idetify a new row to be created in output xml.In above example you can see that first part of source xml the d2 tag was used to as seperation to create a new row and in second part of source xml he tag d3 act as deciding factor to create a new row.
As the source xml is dynamic any tag from d1,d2,d3,d(n).. .... can be deciding factor for creation of new row in output xml.
how can i go ahead with this
raj
Source format:
<d1 name="a1">
<d2 name="b1">
<d3 name="c1"/>
</d2>
<d2 name="b2">
<d3 name="c2"/>
</d2>
</d1>
<d1 name="a2">
<d2 name="b3">
<d3 name="c3"/>
<d3 name="c4"/>
</d2>
</d1>
Output format:
<row d1="a1" d2="b1" d3="c1" />
<row d1="a1" d2="b2" d3="c2" />
<row d1="a2" d2="b3" d3="c3" />
<row d1="a2" d2="b3" d3="c4" />
The twist is that the source xml is created dynamic and any tag can be used to idetify a new row to be created in output xml.In above example you can see that first part of source xml the d2 tag was used to as seperation to create a new row and in second part of source xml he tag d3 act as deciding factor to create a new row.
As the source xml is dynamic any tag from d1,d2,d3,d(n).. .... can be deciding factor for creation of new row in output xml.
how can i go ahead with this
raj
Comment