I'm doing an assignment where I am to consider two solutions for storing text used in a webpage. Scenario: there is one webpage for one lecture, and several lectures for one subject.
The first alternative is a normal relational database, this one is ok.
The other alternative is a table with two "normal" attributes, and one with Oracle's XmlType. In this xml-file all the data for one subject will be saved. So the xml-file will contain data for several lectures. I need some pros and cons for alternative #2. And why should I consider using alternative #2 in stead of #1??
The only reason to store data in XML is if you are receiving the data in XML and wish to treat it as one continuous container of "stuff". Trying to query XML is a challenge sometimes, regardless of the ability to do so with all the fancy Oracle functions. I've done it, but the performace penalties can be rough, or you have to jump through hoops to get the indexes right.
For a little perspective, I'm going to refer to Joel on this one: Back to Basics - Joel on Software