Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
10-07-2011, 05:06 PM #1
What i am really after is some thoughts to how you guys use XML or just what you think about it and if MySQL is a good choice to work towards next.
Thanks in advance..pLeAd InSaNiTy.
10-07-2011, 05:30 PM #2
Also what is the future of the WEB i hear something about Procedural/Declarative languages and the future is in declarative. I am a little confused of the difference but what are your views?.pLeAd InSaNiTy.
10-07-2011, 05:44 PM #3
- Join Date
- Aug 2006
- Thanked 393 Times in 390 Posts
I use xml all the time, and find it hugely useful. I have several sites that I need to "configure" in a variety of ways, one has a list of events (and associated prices, dates, options, etc), and others just have general "information" that needs to be easily configurable. I use the SimpleXML interface (all my sites are php driven) to pull up all this info at run-time. So it saves me hard-coding such information throughout the site. And I find it much easier to implement such configurations via xml than using a database for them.
I have another site that most likely should be database driven, but for the moment I am using quite the volumes of XML files for various data stores. I find it easy, but to some extent it's one of those sites that if I had to do a code review in front of my peers, I'd be a bit embarrassed to say that it was not using a database, but tons of xml instead. Large portions of the xml on this site are duplicated text, one for each of multiple languages.
So don't write off xml quite yet, I suspect you'll find reasons to use it.
10-08-2011, 08:18 AM #4
Thanks ill stick with it then. Just wanted to hear if it was worth having the skill even if i don't use it as such much. Thanks for your reply..pLeAd InSaNiTy.
10-11-2011, 03:59 AM #5
- Join Date
- Sep 2011
- Thanked 0 Times in 0 Posts
XML is essential and useful for data exchange, so you should learn and understand it!
However, I would suggest you look at JSON as well, it is quite light and definitely less verbose than XML. That mean the transfer time for JSON data is more fast than XML, so it is widely used in the communication between mobile apps and server.