![]() |
modify xml doc using server-side language
I am trying to determine if XML is something I can use in place of a mysql database for a small project. It seems very promising for my purposes, but I can't seem to find one piece of information that is necessary for this to work. Is it possible to use a server-side language, like php, to modify the XML document that resides on the server so that users can make changes to the data stored in the file? I'd be surprised if this isn't possible, but I haven't found anything which gives me an answer to this question. Hopefully someone here can help me out. Thanks.
|
XML parsing in most server-side languages can be a tad cumbersome/slow. An alternative is to use the traditional PHP + Database option but output XML instead of HTML. That can be used by client applications as well as webbrowsers. Tack on an XSL stylesheet link to the top and it renders like a regular web page.
Example: http://newsrss.bbc.co.uk/rss/newsonl...nology/rss.xml |
I like that idea. Thanks for the suggestion. I will try that. But just out of curiosity, is XML document manipulation, on a file on a server, possible with server-side code? It seems to me that if you can build an xml document then you should be able to modify one.
|
Quote:
I'd reccomend picking up XML in a nutshell, very very good book for this stuff. |
XML has great application in a) data transmission and b) fairly constant storage.
RSS falls into A because it is used to transfer a set of info from another data source to any of a huge number of clients. Could be firefox, could be an aggregator. GAIM (an instant messenger) stores its preferences in an XML file. This falls into B because the file is only accessed periodically to load it on startup and even less frequently to be rewritten when preferences change. The issue with using XML as a database replacement is server-side overhead and a lot of file locking. Databases are optimized for concurrent access and storage. Each has its use. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
| All times are GMT -5. The time now is 9:30 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC