NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page XML DB Vs MySQL

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 11-12-2005, 01:33 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Sep 2005
Posts: 30
shahid_146 is an unknown quantity at this point
 



XML DB Vs MySQL


Whenever I have to give an option to admin of the website to be able to change content on individual pages, I store the content in the database (most of the time MySQL). A new guy in my company joined recently and has advised me to use XML for storing text content of the websites which according to him is a better way then storing it into the database.
I want to know what are the main advantages of using XML file for storing text content or are there any ? Would love to know both the pros and cons.

URL: Binarytrends
shahid_146 is offline  
Old 11-12-2005, 01:37 PM   #2 (permalink)
sjp
NamePros Member
 
sjp's Avatar
Join Date: Oct 2005
Location: Andromeda
Posts: 136
sjp is on a distinguished road
 



What were that guy's arguments, or did he just tell you to use XML "because it's better" with no arguments supporting his point of view?
sjp is offline  
Old 11-13-2005, 11:17 AM THREAD STARTER               #3 (permalink)
NamePros Member
Join Date: Sep 2005
Posts: 30
shahid_146 is an unknown quantity at this point
 



His argument was that it is faster in accessing. But I wanna know if there are any other benefits as well.
shahid_146 is offline  
Old 11-13-2005, 12:20 PM   #4 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
Join Date: Aug 2004
Posts: 3,809
stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of
 



I use a combination of the two. I use MySQL for backend administration, and for data that I need parsed that doesn't need to be secure, I use XML. I have also written a tiny bit of VB.NET in my time as a "part-time programmer" and fetching information from a remote database is much easier and creates a smaller exe whwen using XML parsing.

-Steve
stscac is offline  
Old 11-13-2005, 01:08 PM   #5 (permalink)
sjp
NamePros Member
 
sjp's Avatar
Join Date: Oct 2005
Location: Andromeda
Posts: 136
sjp is on a distinguished road
 



You need to clarify something else. Are you talking about XML databases or are you talking about XML files? These are two very different things.

XML databases are for example the freeware Berkeley XML DB or Oracle XML DB. These databases can be filled with XML-style information and they can be queried using XPath instead of SQL or something. The concept is relatively new as far as database history goes. I've only used Oracle XML DB briefly myself, I don't have any real experience with them.
????: NamePros.com http://www.namepros.com/programming/139535-xml-db-vs-mysql.html

XML files are just plain-text files in a certain format. They are good for small files like config files but completely unsuitable to access large amounts of data in a fast way. Relational databases are *a lot* faster when it comes to accessing data.
sjp is offline  
Old 11-13-2005, 01:41 PM   #6 (permalink)
NamePros Regular
 
Zubair1's Avatar
Join Date: Mar 2005
Posts: 912
Zubair1 is just really niceZubair1 is just really niceZubair1 is just really niceZubair1 is just really niceZubair1 is just really nice
 


AIDS/HIV
I think that using MySQL Database's is a much better choice rather then using XML to parse / access large sets of data time by time. By using XML as files you will quite frankly being using your file storage one way or another that is not for many especially if you are putting large amount of data to it. as the file grows the time to load it also grows. MySQL is fully powered with great features and loads of new coming accessing data from a mysql db is one of the easiet and fastest in my opinion.

Though i suppose maybe XML good for using template engines or reading small data from it.
__________________
Live Support : Zubair11 [at] hotmail.com
Free SEO Directory! || Free Online TV || Tech Blog
Web Design & Web Development Services || Reliable Web Hosting
Zubair1 is offline  
Old 11-15-2005, 01:42 PM THREAD STARTER               #7 (permalink)
NamePros Member
Join Date: Sep 2005
Posts: 30
shahid_146 is an unknown quantity at this point
 



Thanks guys


Thank you all for the replies. The conclusion which I get from this discussion is that what i was doing was more apropriate. Means storing my data in MySQL DB than XML files.

I really appreciate your help.
shahid_146 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Install the Apache Web Server, Perl, PHP, and MySQL on Windows deadserious Webmaster Tutorials 96 05-27-2007 02:24 PM
MySQL Tips shahid_146 Webmaster Tutorials 4 10-18-2005 01:53 PM
Tutorial: How to Install Apache2 MySQL and PHP on Windows deadserious Webmaster Tutorials 35 09-21-2005 10:46 PM
HOW TO: Use shell to control MySQL. abdulmueid Webmaster Tutorials 16 08-27-2005 09:17 AM
Tutorial: Getting Started With MySQL (The Basics) deadserious Webmaster Tutorials 3 04-18-2004 02:17 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 12:44 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger