<?xml version="1.0" encoding="utf-8"?>
<products>
<category categoryName="Electronics">
<product productName="Camera Lenses Collection" productID="DSCF0001" thumbPath="thumbs/Electronics/camera_lenses_collection-other.jpg" productPrice="250.50">
<sizes>
<size>10</size>
<size>20</size>
<size>30</size>
<size>40</size>
<size>50</size>
</sizes>
<colors>
<color>Red</color>
<color>Blue</color>
<color>Green</color>
<color>Yellow</color>
<color>Pink</color>
</colors>
</category>
</product>
</products>
-嗨,我需要通过循环从表中加载数据。请帮助我-如何从数据库生成 xml 文件?