In XML data storage, the data is stored in a file which represents
an XML Schema of the data. To read the data, you have to pull and
open the entire file in memory and use technics like xpath to get
the data element you want.
In SQL data storage, the data is stored in a database ( usually
relational database). To read the data, you simple sent an SQL query
to the database. The database management engine analysis the query
and get the required data elements you ask for in your query which
is finally sent to you as a reply.
"XML is not a database. It was never meant to be a database.
It is never going to be a database. Relational databases
are proven technology with more than 20 years of implementation
experience. They are solid, stable, useful products. They are
not going away. XML is a very useful technology for moving data
between different databases or between databases and other programs.
However, it is not itself a database. Don't use it like one."
No comments:
Post a Comment