If you read my post the main reason I have stated to not go for XML as a database, is that you need to write a lot of code to get multi-threading right! Not everyone is able to write multi-threaded applications correctly...plus you loose all the other features RDBMS system provide to you like Transactions, Security, etc.
I agree with the benefits you have listed which would warrent using XML as a datasource, but for most users they tend to use it in the same format as one uses a RDBMS.
AksTech Solutions, reflecting your needs...
"Guy LaRouche" wrote:
> Saurabh Nandu wrote:
>
> Actually, I already created a Windows service that allows multithreaded
> access to an XmlDocument for simulaneous 'users' to read/write. I use the
> Mutex class. I mutex is like queueing system, it takes in requests from
> multiple threads or sources and let's them in one at a time, so there is no
> collision.
>
> Xml /is/ a 'data' base.
>
> What you are referring to as a database is a Sql relational database.
> Tables in a relational database are orthogonal. Each record has all the
> fields of all the others, and no more.
>
> Xml is a hierarchical database. But, it is also 'ragged'. Not all nodes
> have to have the same attributes, or child nodes.
>
> For many uses, Xml could be idea. That is why I am interested in creating
> this web service.
>
> I also feel that many web 'database' applications need only a single table
> with very complicated nodes. In that case, a relational database, such as
> sql server, is the *wrong* choice for web-data applications; and Xml could
> be *very* useful.
>
> > hi,
> >
> > XML is best when its used as a data exchange document, and not as a
> > database as such. The reason i don't recomend using it as a database
> > (shared amongst users) is that you end up writing a lot of locking code to
> > ensure that when one user is updating the document others cannot write to
> > it and things like that.
> >
> > Now suppose 2 users tried to update at the same time, ones request will
> > pass through other will fail since the document gets locked.
> >
> > FOr multiple read/write the best source to store data is a database!! Its
> > meant to help you d multiple read/writes without locking the users.
> >
> >
> >
>
> --
> incognito @
http://kentpsychedelic.blogspot.com/ >