Storing XML

Tom (archive)

Usenet Archive
Joined
Dec 8, 1999
Messages
564
Reaction score
0
Hi,

I'm designing a website where all the articles/news will be stored in XML. (I will use PHP to parse the XML.) Should I store the XML in separate .xml files or should I store the XML in a MySQL database? Which would be faster?

Best regards,

Tom
 

Saqib Ali

Usenet Archive
Joined
Oct 9, 2002
Messages
74
Reaction score
0
I'm designing a website where all the articles/news will be stored in
XML. (I will use PHP to parse the XML.) Should I store the XML in separate .xml files or should I store the XML in a MySQL database? Which would be faster?

I have lots of XML documents on my server @ http://validate.sf.net . I m using Apach Xindice ( http://xml.apache.org/xindice/ ) to store some of the document. It works very nicely. Xindice is open source.

Using a Object/Relational DB (including Oracle) is NOT a good idea, to store XML. Unless your XML schema is flat, it will not be easy to map to a Relational DB. If you *MUST* use a Relational DB, look into http://www.intsysr.com/odbc2xml.htm

If your application requires storing a large amount of data and faster querying, look into http://www.objectivity.com/ . Objectivity is a pure Object Oriented DB, which will map to XML schema better.

In Peace,
Saqib Ali
http://validate.sf.net
 

Sebastian Bossung

Usenet Archive
Joined
Jun 7, 2004
Messages
3
Reaction score
0
Tom said:
Hi,

I'm designing a website where all the articles/news will be stored in XML. (I will use PHP to parse the XML.) Should I store the XML in separate .xml files or should I store the XML in a MySQL database? Which would be faster?

You probably should consider using a native XML database like eXist (http://www.exist-db.org/). It allows you to store XML documents and also query them using the structure of your XML. eXist implements the query language XQuery for that.

Sebastian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,224
Members
248,132
Latest member
henrywalsh

Latest Threads

Top