我需要生成这个看起来简单的XML,寻找一种干净的方法来生成它。
<order>
<user>2343></user>
<creditcardtype>2333></creditcarttype>
<country>USA</country>
<orderDetails>
<amount>23434</amount>
<shipping>32</shipping>
</orderDetails>
</order>
<order user="2343">...
- Rob Fonseca-Ensor