I used to download the report from our site, it always gives the report in the below format.
[TABLE="width: 343"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]B [/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]Class [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Subject [/TD]
[TD]Maths[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Mark details[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Semester I[/TD]
[TD]Semester II[/TD]
[TD]Semester III[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]30[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]50[/TD]
[TD]25[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]20[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]Class [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Subject [/TD]
[TD]Science[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Mark details[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Semester I[/TD]
[TD]Semester II[/TD]
[TD]Semester III[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]30[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]20[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]50[/TD]
[TD]25[/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]
I want the report in the below format.
Every time i need to remove the rows and manipulate the output to get the below output format.
[TABLE="width: 423"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Subject[/TD]
[TD]Semester I[/TD]
[TD]Semester II[/TD]
[TD]Semester III[/TD]
[/TR]
[TR]
[TD]Maths[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD]Maths[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD]Maths[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]Science[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD]Science[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]Science[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]100[/TD]
[/TR]
</tbody>[/TABLE]
Kindly help with this issue
[TABLE="width: 343"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]B [/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]Class [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Subject [/TD]
[TD]Maths[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Mark details[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Semester I[/TD]
[TD]Semester II[/TD]
[TD]Semester III[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]30[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]50[/TD]
[TD]25[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]20[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]Class [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Subject [/TD]
[TD]Science[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Mark details[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Semester I[/TD]
[TD]Semester II[/TD]
[TD]Semester III[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]30[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]20[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]50[/TD]
[TD]25[/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]
I want the report in the below format.
Every time i need to remove the rows and manipulate the output to get the below output format.
[TABLE="width: 423"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Subject[/TD]
[TD]Semester I[/TD]
[TD]Semester II[/TD]
[TD]Semester III[/TD]
[/TR]
[TR]
[TD]Maths[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD]Maths[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD]Maths[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]Science[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD]Science[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]Science[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]100[/TD]
[/TR]
</tbody>[/TABLE]
Kindly help with this issue