473,395 Members | 1,386 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,395 software developers and data experts.

C# pure xml database?

BA

Hello,

Anyone know of an open source C# pure xml database that is available?

I've done some looking around and can't locate anything.

Thanks in advance,

BA
http://biztalkia.blogspot.com/
Feb 23 '06 #1
18 7396
Give this one a try.
It's native XML and open source:
http://exist.sourceforge.net/

"BA" <bi***************@gmail.com> wrote in message
news:71**************************@news.microsoft.c om...

Hello,

Anyone know of an open source C# pure xml database that is available?

I've done some looking around and can't locate anything.

Thanks in advance,

BA
http://biztalkia.blogspot.com/

Feb 23 '06 #2
BA
Hello Sharon,

Thanks for the link but I am hoping for something out there written in C#,
this one looks Java based.

BA
http://biztalkia.blogspot.com/
Give this one a try.
It's native XML and open source:
http://exist.sourceforge.net/
"BA" <bi***************@gmail.com> wrote in message
news:71**************************@news.microsoft.c om...
Hello,

Anyone know of an open source C# pure xml database that is available?

I've done some looking around and can't locate anything.

Thanks in advance,

BA
http://biztalkia.blogspot.com/

Feb 23 '06 #3
Hello BA,

What are the features you are looking for? What's wrong with using DataSet
and serialize it or SQLExpress they both can keep data in XML

B> Hello,
B> Anyone know of an open source C# pure xml database that is available?
B> I've done some looking around and can't locate anything.
B> Thanks in advance,

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Feb 23 '06 #4
BA
Hello Michael,

Its for a proof of concept.

We'd like to experiment with the different types of storage available (such
as fragments stored as data trees, etc) and using xml-like queries for retrieving
xml fragments rather than having to work with an entire document. This project
deals with a large xml file to describe a customer + purchased product +
historical data, etc which can become cumbersome to move around when you
want to work with it. Retrieving, updating, adding and storing fragments
might be a nice way to handle it.

All that said, there is alot I dont know about xml db's which is why I'd
like to see an open source C# implimentation to judge whether there really
are any advantages to it and also the ability to extend it since I am sure
it wont have the array of capabilities I need, ie, wont meet the 80-20 rule.

BA
http://biztalkia.blogspot.com/

Hello BA,

What are the features you are looking for? What's wrong with using
DataSet and serialize it or SQLExpress they both can keep data in XML
B>> Hello,
B>> Anyone know of an open source C# pure xml database that is
B>> available?
B>> I've done some looking around and can't locate anything.
B>> Thanks in advance, ---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents
do not cease to be insipid." (c) Friedrich Nietzsche

Feb 23 '06 #5
"BA" <bi***************@gmail.com> wrote in message
news:71**************************@news.microsoft.c om...
are any advantages to it and also the ability to extend it since I am sure
it wont have the array of capabilities I need, ie, wont meet the 80-20
rule.


I've never thought of XML as anything other than a very flexible data
transport - it's certainly not a database, nor was it ever intended to be
one.

If you were writing a letter, you wouldn't use Excel because that simply
wouldn't be the right product. You could, of course, write a letter in Excel
if you really wanted to... Same goes for using XML as a database.

If you need a database solution, then use a database.
Feb 23 '06 #6
BA
Hello Mark,

While I understand your point (since I need easily accessible storage), I
dont need a database solution, I need an XML solution.

My intention is to investigate how I could use and XML database as a tool
to work on large amounts of XML more efficently.

Let me give you an example to illustrate my point:

Lets say a customer changes an address and I need to check if the new address
is within a servicable area.

There is a 250k xml file associated with the customer (or a large array of
database columns), but all I want is to check an address node with a business
rule inside BizTalk's Business Rules engine. Rather than store all the data
for the customer relationally and have to return it (or part of it) as XML,
might it be more efficent to just pull that node from the XML store, validate
it, update it and slap it back in?

Those are the kinds of questions I am trying to answer.

Dont get me wrong, I'm not trying to sound like an advocate here, I am interested
in experiementing, thats all.

BA
http://biztalkia.blogspot.com/

I've never thought of XML as anything other than a very flexible data
transport - it's certainly not a database, nor was it ever intended to
be one.

If you were writing a letter, you wouldn't use Excel because that
simply wouldn't be the right product. You could, of course, write a
letter in Excel if you really wanted to... Same goes for using XML as
a database.

If you need a database solution, then use a database.

Feb 23 '06 #7
"BA" <bi***************@gmail.com> wrote in message
news:71**************************@news.microsoft.c om...
While I understand your point (since I need easily accessible storage), I
dont need a database solution, I need an XML solution.
Not from what you say below...
There is a 250k xml file associated with the customer (or a large array of
database columns), but all I want is to check an address node with a
business rule inside BizTalk's Business Rules engine. Rather than store
all the data for the customer relationally and have to return it (or part
of it) as XML, might it be more efficent to just pull that node from the
XML store, validate it, update it and slap it back in?
Without seeing your schema, I can pretty much guarantee that you're NEVER
going to get anywhere close to the speed of a proper database in this
scenario.
Dont get me wrong, I'm not trying to sound like an advocate here, I am
interested in experiementing, thats all.


I understand that, but I'm pretty certain you're wasting your time...
Feb 23 '06 #8
Hello BA,

B> My intention is to investigate how I could use and XML database as a
B> tool to work on large amounts of XML more efficently.

Take into account that XML is not a tons of text data, but a stuctured
and validated data.
It brings you that 1mb XML file needs 30mb RAM to be parsed

B> Let me give you an example to illustrate my point:
B> Lets say a customer changes an address and I need to check if the new
B> address is within a servicable area.
B> There is a 250k xml file associated with the customer (or a large
B> array of database columns), but all I want is to check an address
B> node with a business rule inside BizTalk's Business Rules engine.
B> Rather than store all the data for the customer relationally and have
B> to return it (or part of it) as XML, might it be more efficent to
B> just pull that node from the XML store, validate it, update it and
B> slap it back in?
B>
B> Those are the kinds of questions I am trying to answer.

Weak of this solution is that you are trying to map customers data directly
to your DB data. You need not to check all your
customers data for DB in your case.
I suggest to create cannonical XML format, where map your customer's data
and then validate it.

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Feb 23 '06 #9
While I agree with the other posters here that storing XML directly is
probably not what you want (given what you've told us), do you know
that SQL Server 2005 has native XML columns, complete with XQuery
searches within the XML stored there?

I've never tried it myself, but apparently it's there.

I do intend to use this funcitonality someday, but not for what you
want to use it for. I see it as a good solution for creating an archive
of documents moving in and out of our (web services) system. As a live
data source, I would avoid it like the plague, but that's just me.

Feb 23 '06 #10
BA napisa?(a):
Hello Sharon,

Thanks for the link but I am hoping for something out there written in
C#, this one looks Java based.

BA
http://biztalkia.blogspot.com/


If you're looking for C# DB with XML I/O, then
look for DataSet in .NET Documentation.

--
Marcin Grze;bski
mg*******@taxussi.no.com.spam.pl
Feb 24 '06 #11
BA
Hello Bruce,

Good Point.

SQL 2005 has xml as a data type. That gives me a good reason to toy with it.
BA
http://biztalkia.blogspot.com/

While I agree with the other posters here that storing XML directly is
probably not what you want (given what you've told us), do you know
that SQL Server 2005 has native XML columns, complete with XQuery
searches within the XML stored there?

I've never tried it myself, but apparently it's there.

I do intend to use this funcitonality someday, but not for what you
want to use it for. I see it as a good solution for creating an
archive of documents moving in and out of our (web services) system.
As a live data source, I would avoid it like the plague, but that's
just me.

Feb 24 '06 #12

"BA" <bi***************@gmail.com> wrote in message
news:71**************************@news.microsoft.c om...
Hello Bruce,

Good Point.
SQL 2005 has xml as a data type. That gives me a good reason to toy with
it.


Do you really want to make it impossible to port your app to another (maybe
free) database?

You will be limiting your market.
Feb 24 '06 #13
BA
Hello Nick,

Its custom built for a client, they are all Microsoft so its no problem.
I cant leverage the code even if I wanted to since I've signed a bunch of
confidentiality agreements.

Cheers,
BA
http://biztalkia.blogspot.com/
"BA" <bi***************@gmail.com> wrote in message
news:71**************************@news.microsoft.c om...
Hello Bruce,

Good Point.
SQL 2005 has xml as a data type. That gives me a good reason to toy
with
it.

Do you really want to make it impossible to port your app to another
(maybe free) database?

You will be limiting your market.

Feb 24 '06 #14
Sql 2005 Express is free.
--
William Stacey [MVP]

"Nick Hounsome" <nh***@nickhounsome.me.uk> wrote in message
news:zL*******************@fe1.news.blueyonder.co. uk...
|
| "BA" <bi***************@gmail.com> wrote in message
| news:71**************************@news.microsoft.c om...
| > Hello Bruce,
| >
| > Good Point.
| > SQL 2005 has xml as a data type. That gives me a good reason to toy
with
| > it.
| >
|
| Do you really want to make it impossible to port your app to another
(maybe
| free) database?
|
| You will be limiting your market.
|
|
Feb 24 '06 #15
> Do you really want to make it impossible to port your app to another
(maybe free) database?

You will be limiting your market.
This statement makes several assumptions which are just plain wrong. First,
it assumes that a SQL Server database cannot be exported to another format
if necessary. SQL Server has more capability for this sort of thing than any
other database, with the possible exception of Oracle (I haven't been
keeping up with Oracle lately, so I can't make the call there).

Second, it assumes that the application will be dependent upon the database
format. A well-designed application is loosely-coupled to the database
layer.

Finally, let's for a moment imagine that what you are saying is correct (I
have a vivid imagination). What database would *not* have the same effects
you describe (which I deny) as using SQL Server?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
To a tea you esteem
a hurting back as a wallet.
"Nick Hounsome" <nh***@nickhounsome.me.uk> wrote in message
news:zL*******************@fe1.news.blueyonder.co. uk...
"BA" <bi***************@gmail.com> wrote in message
news:71**************************@news.microsoft.c om...
Hello Bruce,

Good Point.
SQL 2005 has xml as a data type. That gives me a good reason to toy with
it.


Do you really want to make it impossible to port your app to another
(maybe free) database?

You will be limiting your market.

Feb 24 '06 #16

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uL**************@TK2MSFTNGP12.phx.gbl...
Do you really want to make it impossible to port your app to another
(maybe free) database?

You will be limiting your market.
This statement makes several assumptions which are just plain wrong.
First, it assumes that a SQL Server database cannot be exported to another
format if necessary.


No - It assumes that code designed to retriev data from a database with XML
support will not work with a database that hasn't got it.
SQL Server has more capability for this sort of thing than any other
database, with the possible exception of Oracle (I haven't been keeping up
with Oracle lately, so I can't make the call there).

Second, it assumes that the application will be dependent upon the
database format. A well-designed application is loosely-coupled to the
database layer.
Through a bunch of code that you would have to change.
Finally, let's for a moment imagine that what you are saying is correct (I
have a vivid imagination). What database would *not* have the same effects
you describe (which I deny) as using SQL Server?


Any database that doesn't directly support XML
Feb 24 '06 #17
Well, Nick, you may have something there, but let's not forget that XML can
be easily transformed to just about anything you want. That includes text.
Assuming that the OP wants to work with XML *as* XML, the only dependency
should be in the business layer (if the app is well-designed). So, exporting
XML from SQL Server to any other database as text is certainly an option. In
addition, exporting the XML data to any other database in any other format
is also an option.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A brute awe as you,
a Metallic hag entity, eat us.
"Nick Hounsome" <nh***@nickhounsome.me.uk> wrote in message
news:Hp*******************@fe1.news.blueyonder.co. uk...

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uL**************@TK2MSFTNGP12.phx.gbl...
Do you really want to make it impossible to port your app to another
(maybe free) database?

You will be limiting your market.


This statement makes several assumptions which are just plain wrong.
First, it assumes that a SQL Server database cannot be exported to
another format if necessary.


No - It assumes that code designed to retriev data from a database with
XML support will not work with a database that hasn't got it.
SQL Server has more capability for this sort of thing than any other
database, with the possible exception of Oracle (I haven't been keeping
up with Oracle lately, so I can't make the call there).

Second, it assumes that the application will be dependent upon the
database format. A well-designed application is loosely-coupled to the
database layer.


Through a bunch of code that you would have to change.
Finally, let's for a moment imagine that what you are saying is correct
(I have a vivid imagination). What database would *not* have the same
effects you describe (which I deny) as using SQL Server?


Any database that doesn't directly support XML

Feb 24 '06 #18
BK
Bruce,

I am working on something similar to what you "intend" to do. The (final)
system will have a cataloging component that would essentially be a
Folder/File structure. So far I have coded the Iteration over a selected
folder and am displaying the data/structure in a TreeView (VB.NET 2005). I
then serialize the Treeview and store the serialized XML in a SQL 2005 XML
Column. I can also retrieve an entire XML (one record, that is) and rebuild
the TreeView.

Never having worked with XML, I think I could make the serialized XML
smaller. Presently, I am displaying File Name and related attributes
(Creation Date, Size etc) as child nodes to the FileName Node. This makes the
serialized XML large. If I knew more about XML, I would have been able to
put them in as Attributes and display them "On Click" or something.

What I need now - is for help on how to build a xQuery to select FRAGMENTS
from all XMLs in the Database – filtered/searched on say, a File Name, and
return those (xml fragments) to the Client (VB Interface).

Does XQuery have a client-Side XQuery Implementation? Or will I have to work
with Stored Procedures? Any XML related suggestions on building the TreeView
and developing and executing the XQuery would be much appreciated.

Thanks.

"Bruce Wood" wrote:
While I agree with the other posters here that storing XML directly is
probably not what you want (given what you've told us), do you know
that SQL Server 2005 has native XML columns, complete with XQuery
searches within the XML stored there?

I've never tried it myself, but apparently it's there.

I do intend to use this funcitonality someday, but not for what you
want to use it for. I see it as a good solution for creating an archive
of documents moving in and out of our (web services) system. As a live
data source, I would avoid it like the plague, but that's just me.

Mar 22 '06 #19

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

Similar topics

1
by: Frank Taylor | last post by:
I am writing a simple viewer for a Palm Pilot database to run on my desktop machine. I have written a simple parser for PDB files, but it is not complete (does not deal with categories). Has anyone...
32
by: Philippe C. Martin | last post by:
Hi, I am looking for a stand-alone (not client/server) database solution for Python. 1) speed is not an issue 2) I wish to store less than 5000 records 3) each record should not be larger...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
6
by: Drazen Gemic | last post by:
Is there any initiative out there aiming to rewrite PHP extensions in pure PHP ? For example, MySQL driver in pure PHP or LDAP extension in pure PHP ? With Java and, as far as I know, Perl, one...
346
by: rkusenet | last post by:
http://biz.yahoo.com/rc/040526/tech_database_marketshare_1.html Interesting to see that database sales for windows is more than Unix.
2
by: Muhammad Qasim via DotNetMonster.com | last post by:
first sory for posting pure database question but i hav a prob n i m helpless so i m posting it my prob is my sqlserver on server machine is running ver very slow like it takes 5min to just expand...
32
by: David Isaac | last post by:
I have no experience with database applications. This database will likely hold only a few hundred items, including both textfiles and binary files. I would like a pure Python solution to the...
2
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but...
14
by: Jack | last post by:
Hi, I meet a question with it , I did not get clear the different betteen them, for example: #include <iostream>
1
by: Steven Payne | last post by:
I am getting a "mysqlcppconn-static.lib(mysql_driver.obj) : fatal error LNK1313: ijw/native module detected; cannot link with pure modules" error message in Visual C++ Stan Edit 2008. I am simply...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.