xml节点插入问题
<tables>
<table 产品='a产品' 时间='2008-06-16' >
<rows id=1>
<row>a</row>
<row>b</row>
<row>c</row>
</rows>
<rows id=2>
<row>d</row>
<row>e</row>
<row>f</row>
</rows>
</table>
<table 产品='b产品' 时间='2008-06-16' >
<rows id=1>
<row>a</row>
<row>b</row>
<row>c</row>
</rows>
</table>
<table 产品='c产品' 时间='2008-06-16' >
<rows id=1>
<row>a</row>
<row>b</row>
<row>c</row>
</rows>
</table>
</tables>
我现在想把这个
<rows id=3>
<row>g></row>
</rows>xml节点插入到第二个table节点下 该怎么操作!谁能提示我一下!
最后的结果是这样:
<tables>
<table 产品='a产品' 时间='2008-06-16' >
<rows id=1>
<row>a</row>
<row>b</row>
<row>c</row>
</rows>
<rows id=2>
<row>d</row>
<row>e</row>
<row>f</row>
</rows>
</table>
<table 产品='b产品' 时间='2008-06-16' >
<rows id=1>
<row>a</row>
<row>b</row>
<row>c</row>
</rows>
<rows id=3>
<row>g></row>
</rows>
</table>
<table 产品='c产品' 时间='2008-06-16' >
<rows id=1>
<row>a</row>
<row>b</row>
<row>c</row>
</rows>
</table>
</tables>