473,326 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

XML as a relational database?

Hello,

My name is Brent Ritchie. I am starting a project for my family as a
christmas present. What I want to do is create a lightweight database of my
family tree, and allow family members to run a web service locally in thier
browser. Because of it being local I don't want them to have to install a
perl or PHP server or a database server on thier machines. So I looked to
XML, which I am very new to. What I want to know is it possible to structure
different XML files as tables in a relational database, store the
information in those files and then pull different pieces of information
from each file and display them? If so then are there any good tutorials or
refrences for producing that type of behaviour. I looked at w3schools.com
but they didn't mention anything like that. If not, what other options would
anyone suggest?

Thank you for your time.

Brent Ritchie
Jul 20 '05 #1
5 2211
Yes, you could put together a bunch of XML files that contain information
about your family tree. Then you could use XSLT or an experimental version
of XQuery, such as the one in Saxon 7, to extract information from the
files.

But, no, it wouldn't be relational and it wouldn't really be a database.
Just a bunch of files. E.g., you wouldn't have the ability to atomically
update individual "records" in the files, to extend the data definition in
while retaining your existing data, or any of the many other capabilities
that distinguish a database from a bunch of files.

Nor would you get any help running a server.

If you know what you're doing, setting up a local PHP server with MySQL
might be just fine. It will allow you to craft a user interface your family
might find appealing and you won't waste time trying to put together a
pretend-database.

Bob Foster

"Brent Ritchie" <br***********@yahoo.ca> wrote in message
news:vk************@corp.supernews.com...
Hello,

My name is Brent Ritchie. I am starting a project for my family as a
christmas present. What I want to do is create a lightweight database of my family tree, and allow family members to run a web service locally in thier browser. Because of it being local I don't want them to have to install a
perl or PHP server or a database server on thier machines. So I looked to
XML, which I am very new to. What I want to know is it possible to structure different XML files as tables in a relational database, store the
information in those files and then pull different pieces of information
from each file and display them? If so then are there any good tutorials or refrences for producing that type of behaviour. I looked at w3schools.com
but they didn't mention anything like that. If not, what other options would anyone suggest?

Thank you for your time.

Brent Ritchie

Jul 20 '05 #2
In the last exciting episode, "Brent Ritchie" <br***********@yahoo.ca> wrote:
My name is Brent Ritchie. I am starting a project for my family
as a christmas present. What I want to do is create a lightweight
database of my family tree, and allow family members to run a web
service locally in thier browser. Because of it being local I don't
want them to have to install a perl or PHP server or a database
server on thier machines. So I looked to XML, which I am very new
to. What I want to know is it possible to structure different XML
files as tables in a relational database, store the information in
those files and then pull different pieces of information from each
file and display them? If so then are there any good tutorials or
refrences for producing that type of behaviour. I looked at
w3schools.com but they didn't mention anything like that. If not,
what other options would anyone suggest?


The result of this will certainly NOT be more than vaguely similar to
a relational database. No relations, to be sure.

If you want a database, then you'll have to install one.

Firebird and PostgreSQL are decent relational databases that are
available for free. (MySQL AB will expect you to pay about $450/host
for their database unless your applications satisfy their licensing
requirement.)
--
If this was helpful, <http://svcs.affero.net/rm.php?r=cbbrowne> rate me
http://cbbrowne.com/info/advocacy.html
"Absolutely nothing should be concluded from these figures except that
no conclusion can be drawn from them."
-- By Joseph L. Brothers, Linux/PowerPC Project
Jul 20 '05 #3
Bob Foster wrote:
Yes, you could put together a bunch of XML files that contain information
about your family tree. Then you could use XSLT or an experimental version
of XQuery, such as the one in Saxon 7, to extract information from the
files.

But, no, it wouldn't be relational and it wouldn't really be a database.
Just a bunch of files. E.g., you wouldn't have the ability to atomically
update individual "records" in the files, to extend the data definition in
while retaining your existing data, or any of the many other capabilities
that distinguish a database from a bunch of files.

Nor would you get any help running a server.

If you know what you're doing, setting up a local PHP server with MySQL
might be just fine. It will allow you to craft a user interface your family
might find appealing and you won't waste time trying to put together a
pretend-database.


But programs that works as "brokers" between relational DB and XML based
applicatons exist.

The company I work for has such a product in "beta" right now, and it is
calld XQX: XML --> SQL --> XML

For more information, please visit the XQX web page at:
http://www.connecttel.com/index.php?link=_XQX

A new version that uses annotated XML schema to define the XML
documents to be retrieved/updated, is to be released soon.

Rosimildo.

Jul 20 '05 #4
In the last exciting episode, Rosimildo da Silva <rd******@connecttel.com> wrote:
But programs that works as "brokers" between relational DB and XML
based applicatons exist.


But the O.P. was imagining that by "simply using XML," he might
eliminate the need to have a relational database, with attendant
complexities.

Throwing in an XML-to-RDBMS "data broker" would mean that he'd have
not only the XML components, but also a DBMS _as well as_ a "broker"
application that is likely of comparable size and complexity.

Instead of diminishing the "size," he bloats size/complexity to
something like 3x worse than it would have been if he had used a
proper database in the first place.
--
"cbbrowne","@","ntlug.org"
http://www.ntlug.org/~cbbrowne/nonrdbms.html
``God decided to take the devil to court and settle their differences
once and for all. When Satan heard of this, he grinned and said, "And
just where do you think you're going to find a lawyer?"''
Jul 20 '05 #5
Christopher Browne wrote:
In the last exciting episode, Rosimildo da Silva <rd******@connecttel.com> wrote:
But programs that works as "brokers" between relational DB and XML
based applicatons exist.

But the O.P. was imagining that by "simply using XML," he might
eliminate the need to have a relational database, with attendant
complexities.

Throwing in an XML-to-RDBMS "data broker" would mean that he'd have
not only the XML components, but also a DBMS _as well as_ a "broker"
application that is likely of comparable size and complexity.

Instead of diminishing the "size," he bloats size/complexity to
something like 3x worse than it would have been if he had used a
proper database in the first place.


I agree. For simple things, plain XML files maybe the way to go.

Rosimildo.

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: yensao | last post by:
Hi, I have a hard time to understand difference and similarities between Relational database model and the Object-Oriented model. Can somebody help me with this? Thank you in advance. ...
5
by: Markus Seibold | last post by:
Dear NG, I am working on a student project about a mobile tourism information system and among others I have to answer the question whether to use: - a relational database - a XML-native database...
0
by: Stylus Studio | last post by:
DataDirect XQuery(TM) is the First Embeddable Component for XQuery That is Modeled after the XQuery API for Java(TM) (XQJ) BEDFORD, Mass.--Sept. 20, 2005--DataDirect Technologies...
49
by: Mike MacSween | last post by:
I frequently hear that there isn't a commercially available dbms that fully implements the relational model. Why not? And which product comes closest. Mike MacSween
1
by: Tim Fierro | last post by:
Hello, I have had many years using flat file databases (File Express from way back) but am now at a company where a relational database is needed and would carry us into the future. Since I...
7
by: Pradeep | last post by:
Hello, I need to take a set of input tables and create an XML output file. The format of the XML output must be user-definable and must be intuitive enough for non-techies to use. input...
24
by: sonos | last post by:
Hi, I am working on a program to archive data to disk. At what point is it best to use a relational database like MySQL as the backend instead of a C program alone? Thanks to any and all...
10
by: nayden | last post by:
I started playing with python a few weeks ago after a number of years of perl programming and I can say that my first impression is, unsurprisingly, quite positive. ;) The reason I am writing here...
13
by: sulyokpeti | last post by:
I have made a simple python module to handle SQL databases: https://fedorahosted.org/pySQLFace/wiki Its goal to separate relational database stuff (SQL) from algorythmic code (python). A SQLFace...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.