HTML 2 xml

Post here questions and problems related to editing and publishing DITA content.
ouwan
Posts: 1
Joined: Mon Apr 08, 2019 9:59 am

HTML 2 xml

Post by ouwan »

hi there,

i have a table, which i would like to rebuild to a valid xml. it contains 100+ entries.

i have the current first two entries like this:

<tr class="notSelected" id="organ_359">
<td class="col1"><a class="inactive"></a></td>
<td class="opus">172</td>
<td class="ort">Heiden</td>
<td class="Region">AR</td>
<td class="country">CH</td>
<td class="art"></td>
<td class="man">1</td>
<td class="ped">-</td>
<td class="reg">4</td>
<td class="typ">Truhenorgel</td>
<td class="stilrichtungen"></td>
</tr>

<tr class="notSelected" id="organ_358">
<td class="col1"><a class="inactive"></a></td>
<td class="opus">171</td>
<td class="ort">Herzogenbuchsee</td>
<td class="Region">GR</td>
<td class="country">CH</td>
<td class="art"></td>
<td class="man">1</td>
<td class="ped">-</td>
<td class="reg">3</td>
<td class="typ">Positiv</td>
<td class="stilrichtungen"></td>
</tr>

to rebuild it to a valid xml i have to replace the <td class="col1"> with something like <col1>. but i have also to replace the first </td> to </col1>. and the second </td> to </opus> and so on.

i'm new to xml and i have no clue where to start. i'm able to change a script, but i'm not able to set one up.
thank you very much for any help!
paolo