下面是XML的内容,我想把图片地址部分变成调用数据库里的图,请高手指点呀
<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<photo>
<filename>./img/img01.jpg</filename>
<phototitle>图片1</phototitle>
</photo>
<photo>
<filename>./img/img02.jpg</filename>
<phototitle>图片2</phototitle>
</photo>
<photo>
<filename>./img/img03.jpg</filename>
<phototitle>图片3</phototitle>
</photo>
<photo>
<filename>./img/img04.jpg</filename>
<phototitle>图片4</phototitle>
</photo>
<photo>
<filename>./img/img05.jpg</filename>
<phototitle>图片5</phototitle>
</photo>
<photo>
<filename>./img/img06.jpg</filename>
<phototitle>图片6</phototitle>
</photo>
<photo>
<filename>./img/img07.jpg</filename>
<phototitle>图片7</phototitle>
</photo>
<photo>
<filename>./img/img08.jpg</filename>
<phototitle>图片8</phototitle>
</photo>
<photo>
<filename>./img/img09.jpg</filename>
<phototitle>图片9</phototitle>
</photo>
<photo>
<filename>./img/img10.jpg</filename>
<phototitle>图片10</phototitle>
</photo>
<photo>
<filename>./img/img11.jpg</filename>
<phototitle>图片11</phototitle>
</photo>
<photo>
<filename>./img/img12.jpg</filename>
<phototitle>图片12</phototitle>
</photo>
<photo>
<filename>./img/img13.jpg</filename>
<phototitle>图片13</phototitle>
</photo>
<photo>
<filename>./img/img14.jpg</filename>
<phototitle>图片14</phototitle>
</photo>
<photo>
<filename>./img/img15.jpg</filename>
<phototitle>图片15</phototitle>
</photo>
</gallery>
|