When converting from XML to JSON I do not get the tag names sometimes.
e.g
<table>
<tr>
<th>CR</th>
<th>U</th>
<th>BR</th>
<th>RF</th>
<th>TUR</th>
</tr>
<tr><th>CM</th>
<th>CT</th>
</tr>
<tr><td>CM:
<drop_down_menu>
<value>DCM</value>
<value>VCM</value>
<value>TCM</value>
</drop_down_menu>
</td>
<td>CT:
<drop_down_menu>
<value>DCT</value>
<value>VCT</value>
<value>TCT</value>
</drop_down_menu>
</td>
</tr>
</table>
Json output:
{"xml":{"table":[["CR","U","BR","RF","TUR"],["CM","CT"],[{"#text":"CM:","drop_down_menu":["DCM","VCM","TCM"]},{"#text":"CT:","drop_down_menu":["DCT","VCT","TCT"]}]]}}
Why are the tags tr,th and td missing?