例如:通过sql查询出一组记录
test id='1' height='12' width='10'
test id='2' height='12' width='15'
test id='3' height='12' width='20'
生成
<test id='1'>
<height='12'/>
<width='10'/>
<test/>
<test id='2'>
<height='12'/>
<width='15'/>
<test/>
test id='1' height='12' width='10'
test id='2' height='12' width='15'
test id='3' height='12' width='20'
生成
<test id='1'>
<height='12'/>
<width='10'/>
<test/>
<test id='2'>
<height='12'/>
<width='15'/>
<test/>
http://topic.csdn.net/u/20081107/17/68aaf5a9-c596-4ab5-ae18-f3370b2ab35b.html
SQL可以直接到XML