例如:通过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/>