473,503 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML as database for CD Gallery???

I am creating a CD that will have various product images. I need more
information on these JPG's so I will need some sort of data on each of them.
I will also need to be able to find these images by keywords, title,
subject, etc....sort of a gallery.

I was considering trying to use XML to avoid using any database. It will be
a fixed set of data, except that from time to time additional items may be
added--via internet download.

What is the group opinion on doing something like this? Would XML be a good
solution?
Too difficult and not worth the trouble? Too verbose? I figure 5000-10000
images max--but no bigger than 300x 300pix.

I am fairly new to XML, but from what I read it appears that the XDocument
class might be the one to go with for something like this. I have also
considered that maybe it should somehow be in XML but then read into a
dataset to be manipulated sort of like a database.

All opinions encouraged...

If the general agreement is that XML would be a good solution, please
provide some of the best resources for doing what I need to do...

Thanks,

Shane

Nov 12 '05 #1
10 1306
Using XML is a good idea if you will not be doing complicated queres and
updating the data very often. Keep in mind,how fast the data might grow.
Using XSL you can also provide a standard interface through browser
without having to code a client or server pages

Mohammed Ali Akbani
http://akbani.20m.com

SStory wrote:
I am creating a CD that will have various product images. I need more
information on these JPG's so I will need some sort of data on each of them.
I will also need to be able to find these images by keywords, title,
subject, etc....sort of a gallery.

I was considering trying to use XML to avoid using any database. It will be
a fixed set of data, except that from time to time additional items may be
added--via internet download.

What is the group opinion on doing something like this? Would XML be a good
solution?
Too difficult and not worth the trouble? Too verbose? I figure 5000-10000
images max--but no bigger than 300x 300pix.

I am fairly new to XML, but from what I read it appears that the XDocument
class might be the one to go with for something like this. I have also
considered that maybe it should somehow be in XML but then read into a
dataset to be manipulated sort of like a database.

All opinions encouraged...

If the general agreement is that XML would be a good solution, please
provide some of the best resources for doing what I need to do...

Thanks,

Shane

Nov 12 '05 #2
Using XML is a good idea if you will not be doing complicated queres and
updating the data very often. Keep in mind,how fast the data might grow.
Using XSL you can also provide a standard interface through browser
without having to code a client or server pages

Mohammed Ali Akbani
http://akbani.20m.com

SStory wrote:
I am creating a CD that will have various product images. I need more
information on these JPG's so I will need some sort of data on each of them.
I will also need to be able to find these images by keywords, title,
subject, etc....sort of a gallery.

I was considering trying to use XML to avoid using any database. It will be
a fixed set of data, except that from time to time additional items may be
added--via internet download.

What is the group opinion on doing something like this? Would XML be a good
solution?
Too difficult and not worth the trouble? Too verbose? I figure 5000-10000
images max--but no bigger than 300x 300pix.

I am fairly new to XML, but from what I read it appears that the XDocument
class might be the one to go with for something like this. I have also
considered that maybe it should somehow be in XML but then read into a
dataset to be manipulated sort of like a database.

All opinions encouraged...

If the general agreement is that XML would be a good solution, please
provide some of the best resources for doing what I need to do...

Thanks,

Shane

Nov 12 '05 #3
Thanks for the input. I would need to do keyword queries and other gallery
queries, so sounds like I may need to use a jet database for that.

Thanks
"Mohammed Ali Akbani" <Te********@inbox.com.pk> wrote in message
news:O%***************@tk2msftngp13.phx.gbl...
Using XML is a good idea if you will not be doing complicated queres and
updating the data very often. Keep in mind,how fast the data might grow.
Using XSL you can also provide a standard interface through browser
without having to code a client or server pages

Mohammed Ali Akbani
http://akbani.20m.com

SStory wrote:
I am creating a CD that will have various product images. I need more
information on these JPG's so I will need some sort of data on each of them. I will also need to be able to find these images by keywords, title,
subject, etc....sort of a gallery.

I was considering trying to use XML to avoid using any database. It will be a fixed set of data, except that from time to time additional items may be added--via internet download.

What is the group opinion on doing something like this? Would XML be a good solution?
Too difficult and not worth the trouble? Too verbose? I figure 5000-10000 images max--but no bigger than 300x 300pix.

I am fairly new to XML, but from what I read it appears that the XDocument class might be the one to go with for something like this. I have also
considered that maybe it should somehow be in XML but then read into a
dataset to be manipulated sort of like a database.

All opinions encouraged...

If the general agreement is that XML would be a good solution, please
provide some of the best resources for doing what I need to do...

Thanks,

Shane

Nov 12 '05 #4
Thanks for the input. I would need to do keyword queries and other gallery
queries, so sounds like I may need to use a jet database for that.

Thanks
"Mohammed Ali Akbani" <Te********@inbox.com.pk> wrote in message
news:O%***************@tk2msftngp13.phx.gbl...
Using XML is a good idea if you will not be doing complicated queres and
updating the data very often. Keep in mind,how fast the data might grow.
Using XSL you can also provide a standard interface through browser
without having to code a client or server pages

Mohammed Ali Akbani
http://akbani.20m.com

SStory wrote:
I am creating a CD that will have various product images. I need more
information on these JPG's so I will need some sort of data on each of them. I will also need to be able to find these images by keywords, title,
subject, etc....sort of a gallery.

I was considering trying to use XML to avoid using any database. It will be a fixed set of data, except that from time to time additional items may be added--via internet download.

What is the group opinion on doing something like this? Would XML be a good solution?
Too difficult and not worth the trouble? Too verbose? I figure 5000-10000 images max--but no bigger than 300x 300pix.

I am fairly new to XML, but from what I read it appears that the XDocument class might be the one to go with for something like this. I have also
considered that maybe it should somehow be in XML but then read into a
dataset to be manipulated sort of like a database.

All opinions encouraged...

If the general agreement is that XML would be a good solution, please
provide some of the best resources for doing what I need to do...

Thanks,

Shane

Nov 12 '05 #5
Keyword and description queries can be easily done in XML files. you can
use SAX to parse and get results.

SStory wrote:
Thanks for the input. I would need to do keyword queries and other gallery
queries, so sounds like I may need to use a jet database for that.

Thanks
"Mohammed Ali Akbani" <Te********@inbox.com.pk> wrote in message
news:O%***************@tk2msftngp13.phx.gbl...
Using XML is a good idea if you will not be doing complicated queres and
updating the data very often. Keep in mind,how fast the data might grow.
Using XSL you can also provide a standard interface through browser
without having to code a client or server pages

Mohammed Ali Akbani
http://akbani.20m.com

SStory wrote:
I am creating a CD that will have various product images. I need more
information on these JPG's so I will need some sort of data on each of
them.
I will also need to be able to find these images by keywords, title,
subject, etc....sort of a gallery.

I was considering trying to use XML to avoid using any database. It
will be
a fixed set of data, except that from time to time additional items may
be
added--via internet download.

What is the group opinion on doing something like this? Would XML be a
good
solution?
Too difficult and not worth the trouble? Too verbose? I figure
5000-10000
images max--but no bigger than 300x 300pix.

I am fairly new to XML, but from what I read it appears that the
XDocument
class might be the one to go with for something like this. I have also
considered that maybe it should somehow be in XML but then read into a
dataset to be manipulated sort of like a database.

All opinions encouraged...

If the general agreement is that XML would be a good solution, please
provide some of the best resources for doing what I need to do...

Thanks,

Shane


Nov 12 '05 #6
Keyword and description queries can be easily done in XML files. you can
use SAX to parse and get results.

SStory wrote:
Thanks for the input. I would need to do keyword queries and other gallery
queries, so sounds like I may need to use a jet database for that.

Thanks
"Mohammed Ali Akbani" <Te********@inbox.com.pk> wrote in message
news:O%***************@tk2msftngp13.phx.gbl...
Using XML is a good idea if you will not be doing complicated queres and
updating the data very often. Keep in mind,how fast the data might grow.
Using XSL you can also provide a standard interface through browser
without having to code a client or server pages

Mohammed Ali Akbani
http://akbani.20m.com

SStory wrote:
I am creating a CD that will have various product images. I need more
information on these JPG's so I will need some sort of data on each of
them.
I will also need to be able to find these images by keywords, title,
subject, etc....sort of a gallery.

I was considering trying to use XML to avoid using any database. It
will be
a fixed set of data, except that from time to time additional items may
be
added--via internet download.

What is the group opinion on doing something like this? Would XML be a
good
solution?
Too difficult and not worth the trouble? Too verbose? I figure
5000-10000
images max--but no bigger than 300x 300pix.

I am fairly new to XML, but from what I read it appears that the
XDocument
class might be the one to go with for something like this. I have also
considered that maybe it should somehow be in XML but then read into a
dataset to be manipulated sort of like a database.

All opinions encouraged...

If the general agreement is that XML would be a good solution, please
provide some of the best resources for doing what I need to do...

Thanks,

Shane


Nov 12 '05 #7
What is sax? Is it free?
"Mohammed Ali Akbani" <Te********@inbox.com.pk> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Keyword and description queries can be easily done in XML files. you can
use SAX to parse and get results.

SStory wrote:
Thanks for the input. I would need to do keyword queries and other gallery queries, so sounds like I may need to use a jet database for that.

Thanks
"Mohammed Ali Akbani" <Te********@inbox.com.pk> wrote in message
news:O%***************@tk2msftngp13.phx.gbl...
Using XML is a good idea if you will not be doing complicated queres and
updating the data very often. Keep in mind,how fast the data might grow.
Using XSL you can also provide a standard interface through browser
without having to code a client or server pages

Mohammed Ali Akbani
http://akbani.20m.com

SStory wrote:

I am creating a CD that will have various product images. I need more
information on these JPG's so I will need some sort of data on each of


them.
I will also need to be able to find these images by keywords, title,
subject, etc....sort of a gallery.

I was considering trying to use XML to avoid using any database. It


will be
a fixed set of data, except that from time to time additional items may


be
added--via internet download.

What is the group opinion on doing something like this? Would XML be a


good
solution?
Too difficult and not worth the trouble? Too verbose? I figure


5000-10000
images max--but no bigger than 300x 300pix.

I am fairly new to XML, but from what I read it appears that the


XDocument
class might be the one to go with for something like this. I have also
considered that maybe it should somehow be in XML but then read into a
dataset to be manipulated sort of like a database.

All opinions encouraged...

If the general agreement is that XML would be a good solution, please
provide some of the best resources for doing what I need to do...

Thanks,

Shane


Nov 12 '05 #8
What is sax? Is it free?
"Mohammed Ali Akbani" <Te********@inbox.com.pk> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Keyword and description queries can be easily done in XML files. you can
use SAX to parse and get results.

SStory wrote:
Thanks for the input. I would need to do keyword queries and other gallery queries, so sounds like I may need to use a jet database for that.

Thanks
"Mohammed Ali Akbani" <Te********@inbox.com.pk> wrote in message
news:O%***************@tk2msftngp13.phx.gbl...
Using XML is a good idea if you will not be doing complicated queres and
updating the data very often. Keep in mind,how fast the data might grow.
Using XSL you can also provide a standard interface through browser
without having to code a client or server pages

Mohammed Ali Akbani
http://akbani.20m.com

SStory wrote:

I am creating a CD that will have various product images. I need more
information on these JPG's so I will need some sort of data on each of


them.
I will also need to be able to find these images by keywords, title,
subject, etc....sort of a gallery.

I was considering trying to use XML to avoid using any database. It


will be
a fixed set of data, except that from time to time additional items may


be
added--via internet download.

What is the group opinion on doing something like this? Would XML be a


good
solution?
Too difficult and not worth the trouble? Too verbose? I figure


5000-10000
images max--but no bigger than 300x 300pix.

I am fairly new to XML, but from what I read it appears that the


XDocument
class might be the one to go with for something like this. I have also
considered that maybe it should somehow be in XML but then read into a
dataset to be manipulated sort of like a database.

All opinions encouraged...

If the general agreement is that XML would be a good solution, please
provide some of the best resources for doing what I need to do...

Thanks,

Shane


Nov 12 '05 #9
I have something like that at http://www.lovettpictures.com/gallery1.htm.
You can see the XML at http://www.lovettpictures.com/gallery1/gallery1.xml.
here I'm using about 250 bytes of XML per image, so if you had 10000 images
that would be 2.5 megabytes. That's getting on the high side for quick
response from XPath queries, the more linear the XPath query expression the
worse it will perform (since XML Documents don't have any indexes). So if
you can partition that at all to sets of images so the index remains under a
megabyte, then you'll be able to count on reasonable performance.

I assume you are considing an IE browser based zero-install solution, so the
user can just pop in the CD and go, in this case you could use the
scriptable MSXML component and you might be able to do some things in-memory
in the root HTML Frame to partition the XML and index critical stuff using
JScript associative arrays, then use that from then on. This will add a bit
to the startup time, but improve the overall user experience from then on.

If you actually plan to install a .NET application from the CD, then you
have more options, DataSet being a good one, since it does have indexes.
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:eQ**************@TK2MSFTNGP11.phx.gbl...
I am creating a CD that will have various product images. I need more
information on these JPG's so I will need some sort of data on each of them. I will also need to be able to find these images by keywords, title,
subject, etc....sort of a gallery.

I was considering trying to use XML to avoid using any database. It will be a fixed set of data, except that from time to time additional items may be
added--via internet download.

What is the group opinion on doing something like this? Would XML be a good solution?
Too difficult and not worth the trouble? Too verbose? I figure 5000-10000 images max--but no bigger than 300x 300pix.

I am fairly new to XML, but from what I read it appears that the XDocument
class might be the one to go with for something like this. I have also
considered that maybe it should somehow be in XML but then read into a
dataset to be manipulated sort of like a database.

All opinions encouraged...

If the general agreement is that XML would be a good solution, please
provide some of the best resources for doing what I need to do...

Thanks,

Shane

Nov 12 '05 #10
Thanks Chris.

It is a windows forms app.
The thing is, if I use a dataset, won't I need to create a database anyhow?
And if not won't populating the XML file in a way the dataset will
understand be difficult?

I would like to have folders, being

CompanyName\Type

so that each category is in it's own folder.

But would need one XML file so I could search by title/author and keywords.

I am thinking all around the answer probably but yet to pull together the
best approach in my mind.

Thanks,

Shane

"Chris Lovett" <clovett-at-microsoft-dot-com> wrote in message
news:10*************@corp.supernews.com...
I have something like that at http://www.lovettpictures.com/gallery1.htm.
You can see the XML at http://www.lovettpictures.com/gallery1/gallery1.xml. here I'm using about 250 bytes of XML per image, so if you had 10000 images that would be 2.5 megabytes. That's getting on the high side for quick
response from XPath queries, the more linear the XPath query expression the worse it will perform (since XML Documents don't have any indexes). So if
you can partition that at all to sets of images so the index remains under a megabyte, then you'll be able to count on reasonable performance.

I assume you are considing an IE browser based zero-install solution, so the user can just pop in the CD and go, in this case you could use the
scriptable MSXML component and you might be able to do some things in-memory in the root HTML Frame to partition the XML and index critical stuff using
JScript associative arrays, then use that from then on. This will add a bit to the startup time, but improve the overall user experience from then on.

If you actually plan to install a .NET application from the CD, then you
have more options, DataSet being a good one, since it does have indexes.
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:eQ**************@TK2MSFTNGP11.phx.gbl...
I am creating a CD that will have various product images. I need more
information on these JPG's so I will need some sort of data on each of them.
I will also need to be able to find these images by keywords, title,
subject, etc....sort of a gallery.

I was considering trying to use XML to avoid using any database. It will be
a fixed set of data, except that from time to time additional items may

be added--via internet download.

What is the group opinion on doing something like this? Would XML be a

good
solution?
Too difficult and not worth the trouble? Too verbose? I figure

5000-10000
images max--but no bigger than 300x 300pix.

I am fairly new to XML, but from what I read it appears that the XDocument class might be the one to go with for something like this. I have also
considered that maybe it should somehow be in XML but then read into a
dataset to be manipulated sort of like a database.

All opinions encouraged...

If the general agreement is that XML would be a good solution, please
provide some of the best resources for doing what I need to do...

Thanks,

Shane


Nov 12 '05 #11

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

Similar topics

2
3384
by: Daniel Kelly \(AKA Jack\) | last post by:
Hi! I'm searching for a Photo Gallery software package (like Coppermine and Gallery) that works, from the ground up, like a database-driven app. In other words, I want a gallery which entirely...
1
3350
by: matt | last post by:
I don't have a database available, so i'm writing an Image Gallery with a flat file database. I have an Add Page: Uploads Image file, and saves $filename and $caption to text file: captions.txt...
10
2263
by: Captain Ranger McCoy | last post by:
Hello! Suppose I have ten servers at ten ips: x.x.x.1 x.x.x.2 x.x.x.3 x.x.x.4 and so on Each server hosts 100+ photo galleries, all under a single domain name,
54
7159
by: Max Quordlepleen | last post by:
Apologies for the crossposting, I wasn't sure which of these groups to ask this in. I have been lurking in these groups for a week or so, trying to glean what I need to design a simple, clean...
5
3236
by: bob garbados | last post by:
I am trying to create a database-driven photo gallery for a friend with an admin form to upload images... I can upload a file to the web server, but I want to store the image in a database and I...
7
3240
by: Eric Lindsay | last post by:
I would like to do a photo gallery with a liquid layout. I wanted to center a caption below each photo (or above each photo). I can do that easily with tables, but then I don't have a liquid...
9
3815
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
11
2071
by: shror | last post by:
hi every body I need help please i have designed an image gallery of about 20 pictures and they are shown in thumb nail views and for viewing the largeer version of the images i have added a...
0
2287
nomad
by: nomad | last post by:
Hello Everyone. I founded an Flash and xml photo gallery. It works but I took it to another step What I want is to have six different galleries in one Flash file. I figure out how to do that but ...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7274
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
5576
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5005
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1507
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.