如何用XML动态的读取数据库里的数据该怎么设计这个表?制作FLASH用的

shiov3535 2009-02-28 05:59:46
<?xml version="1.0" encoding="UTF-8" ?>
<site>
<folio label="MENU001" level="1" feuille="0">
<folio2 label="sub011" thumb="photos/100/photo0.jpg" thumb_w="112" thumb_h="150" level="2" feuille="1">
<photo label="" path="photos/100/photo1.jpg" ordre="1" width="337" height="450" bigpath="photos/100/photo1.jpg" bigwidth="999" bigheight="750"/>
<photo label="" path="photos/100/photo2.jpg" ordre="2" width="337" height="450" bigpath="photos/100/photo1.jpg" bigwidth="299" bigheight="250"/>
<photo label="" path="photos/100/photo3.jpg" ordre="3" width="337" height="450" bigpath="photos/100/photo1.jpg" bigwidth="999" bigheight="750"/>
<photo label="" path="photos/100/photo4.jpg" ordre="4" width="337" height="450" bigpath="photos/100/photo1.jpg" bigwidth="999" bigheight="750"/>
<photo label="" path="photos/100/photo5.jpg" ordre="5" width="337" height="450" bigpath="photos/100/photo1.jpg" bigwidth="999" bigheight="750"/>
<photo label="" path="photos/100/photo6.jpg" ordre="6" width="337" height="450" bigpath="photos/100/photo1.jpg" bigwidth="999" bigheight="750"/>
</folio2>
<folio2 label="sub012" thumb="photos/101/photo0.jpg" thumb_w="112" thumb_h="150" level="2" feuille="1">
<photo label="" path="photos/101/photo1.jpg" ordre="1" width="337" height="450"/>
<photo label="" path="photos/101/photo2.jpg" ordre="2" width="337" height="450"/>
<photo label="" path="photos/101/photo3.jpg" ordre="3" width="337" height="450"/>
<photo label="" path="photos/101/photo4.jpg" ordre="4" width="337" height="450"/>
<photo label="" path="photos/101/photo5.jpg" ordre="5" width="337" height="450"/>
</folio2>
<folio2 label="sub013" thumb="photos/102/photo0.jpg" thumb_w="112" thumb_h="150" level="2" feuille="1">
<photo label="" path="photos/102/photo1.jpg" ordre="1" width="337" height="450"/>
<photo label="" path="photos/102/photo2.jpg" ordre="2" width="337" height="450"/>
<photo label="" path="photos/102/photo3.jpg" ordre="3" width="337" height="450"/>
<photo label="" path="photos/102/photo4.jpg" ordre="4" width="337" height="450"/>
<photo label="" path="photos/102/photo5.jpg" ordre="5" width="337" height="450"/>
<photo label="" path="photos/102/photo6.jpg" ordre="6" width="337" height="450"/>
<photo label="" path="photos/102/photo7.jpg" ordre="7" width="337" height="450"/>
</folio2>
</folio>
</site>

这个XML的文件是要动态的从数据库里读出数据!就像一个tree样
<folio2 label="sub011" thumb="photos/100/photo0.jpg" 这个为2级目录
"sub011"要动态读出来的名字!然后下面的图片是根据上传上来的图片实际大小读出 path里的图片地址能读出来就行!
<photo label="" path="photos/100/photo1.jpg" ordre="1" width="337" height="450" bigpath="photos/100/photo1.jpg" bigwidth="999" bigheight="750"/>

<folio2 label="sub012" thumb="photos/100/photo0.jpg" 也是2级目录
"sub012"同样是动态读出的名字 图片同上。
读出的意思就像
摄影师:
A 1图片 2图片 3图片
B 1图片 2图片 3图片

实现后的效果如下网址
http://www.fredpinet.com/
只考虑如何读图片! FLASH东西制作的不需要回答。 只要设计的数据库就行!


...全文
161 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ZKM_ZHANG 2009-03-02
  • 打赏
  • 举报
回复
lg

62,268

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧