Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / July 2007

Tip: Looking for answers? Try searching our database.

Using XML to store user data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex - 20 Jul 2007 21:46 GMT
Hey Guys..

I'm just now starting to learn VB 2005, but I have a question that
might help me in the long run.  I hope to write applications which
store user data, and without wanting the user to always have an MS SQL
database (or other DB) on hand, is it possible to have VB 2005 store
all data in XML files?  It might be a substancial amount of data, like
hundreds of records, but given these files are never edited manually,
can XML handle this?

Just curious...

Alex
sloan - 20 Jul 2007 22:12 GMT
Yeah, you can.

The best thing is to code to a (strongly typed) DataSet.

A dataset can be loaded from either xml OR a database OR (any other
datastore)

So you don't screw yourself if you find performance is bad, and you need a
more robust solution.

100's of records?  Hmmm.  You better test it.

If its read-only most of time, you can also code Cache items (and Cache
dependencies for when the data changes)

............

I use small strong datasets for small amounts of data.
But using the file based Sql Express is a good option as well.

sloan
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!140.entry

> Hey Guys..
>
[quoted text clipped - 9 lines]
>
> Alex
Mr. Arnold - 20 Jul 2007 22:22 GMT
> Hey Guys..
>
[quoted text clipped - 7 lines]
>
> Just curious...

XML is just text with some tags to identify data within them. I have had
millions upon millions upon millions of bytes sent and received using XML
over the Internet encrypted in a secure connection.

Sure you can do that about what you're wanting to do. But consider the
security and confidentiality risks of data, since the data on the machine
can be opened, read by other programs or viewed.
Alex - 25 Jul 2007 21:24 GMT
>> Hey Guys..
>>
[quoted text clipped - 15 lines]
> security and confidentiality risks of data, since the data on the machine
> can be opened, read by other programs or viewed.

The types of applications I thought about writing to store data in XML would
be like a movie database or other home-type applications where the data
wasn't critical.  For Enterprise applications most definitely MS SQL or
similar would be used for security.  I'd like to possibly write software to
use at home and share with others, and ideally if they don't have to mess
with installing and setting-up a database, that'd be ideal.

Thanks for the info.. I've actually learned a ton since posting that
message, and though I've not gotten to creating XML databases from VB just
yet, I'm starting to see how it's possible.

Take care --

Alex

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.