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 Site conversion from mysql to XML

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 10-02-2006, 11:03 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Jan 2006
Location: the Netherlands
Posts: 7
Chuppa is an unknown quantity at this point
 



Site conversion from mysql to XML


Hey all,

I am working on a project for a company that wants to start using XML datasheets for their site's content instead of a mysql database. They intend to hire a company to store and update the XML files for all of their products.
????: NamePros.com http://www.namepros.com/programming/243484-site-conversion-from-mysql-to-xml.html

The assignment for me is to change the current, database-driven website to a XML driven website. I however don't have a clue of XML, and certainly not how to use it in a database-like manner.

So my question is: do you have good links to sites that explian how to use XML for this purpose? Tutorials or general info pages are equally appreciated. It's tough to find good info when you're new to a subject.

Thanks in advance for your help,
Chuppa
Chuppa is offline  
Old 10-02-2006, 11:07 AM   #2 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




I dont know much about xml - but here is the syntax:

Code:
<xml>
     <item 1>
          <name>Name Of Product</name>
          <desc>A sample product</desc>
     </item1>
</xml>
Barrucadu is offline  
Old 10-04-2006, 03:21 PM THREAD STARTER               #3 (permalink)
New Member
Join Date: Jan 2006
Location: the Netherlands
Posts: 7
Chuppa is an unknown quantity at this point
 



Thanks for that info, but I'm looking for some more specific info on how to work with XML files and using them as data sheets.

Anyone else?
Chuppa is offline  
Old 10-04-2006, 04:39 PM   #4 (permalink)
Ultima Ratio Regum
 
Redleg's Avatar
Join Date: Sep 2003
Location: Up North
Posts: 2,082
Redleg is a splendid one to beholdRedleg is a splendid one to beholdRedleg is a splendid one to beholdRedleg is a splendid one to beholdRedleg is a splendid one to beholdRedleg is a splendid one to beholdRedleg is a splendid one to beholdRedleg is a splendid one to behold
 



Just a quick question:
How large is the MySQL database(s) you're planning to convert to XML file(s)???
And why would you want to do that?

If it's a big DB then I wouldn't recommend you to do that since it can be really slow and server intensive to use XML files alone...
__________________
IP Whois + Geolocation|Geolocate your IP|Dynamic Forum Sigs
<meta name="Jedi Mind Trick" content="Buy my domains, you will!">
Redleg is offline  
Old 10-05-2006, 03:41 PM   #5 (permalink)
NamePros Member
 
drakewla's Avatar
Join Date: Mar 2006
Location: Luxembourg
Posts: 87
drakewla is on a distinguished road
 



Hello,

I guess reading information in XML files is OK, but writing is a heavy and dangerous process; what happens to the XML file if your web server stops, restarts or reboots during a write?

Also, SQL allows indexes, which can make a huge speed difference while looking for a field.

If it's for reading big XML files on the fly, I'd suggest to set up a caching system.
drakewla is offline  
Old 10-14-2006, 05:50 AM THREAD STARTER               #6 (permalink)
New Member
Join Date: Jan 2006
Location: the Netherlands
Posts: 7
Chuppa is an unknown quantity at this point
 



Thanks for your answers, and sorry for my late reply. I guess the notification system doesn't always work right .

I am not converting the database myself, some company is doing that. It allows webshops etc to access the product information. My job is to change the original database-driven website of the company into an xml-driven website, using the same datasheets that the webshops would use (so information is consistent everywhere).
????: NamePros.com http://www.namepros.com/showthread.php?t=243484

www.ithaier.eu

Do you know which way to go about it is easier/better? I could be using XSL for getting all the data from the xml sheets and outputting it, and then including that XSL file into my php file so it shows up correctly into the webpage. Or, I could use something like data islands to put it directly into the website. Are there compaitibily issues, and what is the "common" way of doing things?
Or am I missing a different option that's better or easier?
Chuppa is offline  
Closed Thread


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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:56 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