开发者

Create "Dynamic" XML File?

I'm working on a project which involves a player which is reading several XML files I have to get information such as: Where the images are stored, what the links should be, what the audio file is etc.

This player i开发者_开发百科s going to be used for many different scenarios so I feel like instead of customizing an XML file for each use, we should have one XML file which is generated based on the scenario.

How could I go about implementing this so that the XML file itself is able to get values from a database and then replace the necessary variables? I think that PHP may be a possible solution but the XML files are being called by a flash and non-flash player which I do not think are able to execute php files.


The PHP would be executed by the web server when the XML file is fetched. You can use DOM XML to generate the XML.

Happy to give more assistance if you need it, although reading the manual would be a good start :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜