我需要生成一个像这样的表;
<entry Id="..." Value="64458d"/>
<entry Id="..." Value="67788n"/>
...
可以是任何值,但必须与每个 Id 不同
使用这个 XML,
<?xml version="1.0" encoding="UTF-8"?>
<Product>
<Item>
<Info Id="67788n" Name="Ram X1" Warranty="3 Years" Price="$30.00" />
</Item>
<Item>
<Info Id="67788n" Name="Ram X1" Warranty="3 Years" Price="$30.00" />
</Item>
<Item>
<Info Id="64458d" Name="Ram N2" Warranty="2 Years" Price="$25.00" />
</Item>
<Item>
<Info Id="64458d" Name="Ram N2" Warranty="2 Years" Price="$25.00" />
</Item>
<Item>
<Info Id="68490e" Name="Keyboard CX1" Warranty="1 Year" Price="$20.00" />
</Item>
</Product>
谢谢