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

Xml Component

Hi all,
Is there any examples or tutorials out there on making a component that
manages an Xml docuemnts. As far as SELECTING DELETING UPDATING and
INSERTING data to and from. Similar to querying a database through sql.

I am looking to create a component to wrap up some of the coding needed to
perform these queries.
Any one try this or know of some examples?
Thanks,
Ron Vecchi
Nov 15 '05 #1
2 1213
What about using a DataSet?

DataSet ds = new DataSet();
ds.ReadXml("xmlfile");
update, select, delete, etc from dataset...
ds.WriteXml("xmlfile");

Granted, if you have more than one process running, you'll have some
problems in terms of other updates to the xml file. But if you are looking
for concurrent access, a database would be far preferable anyway.

--
Mike Mayer
http://www.mag37.com/csharp/
mi**@mag37.com
"Ron Vecchi" <ve******@comcast.net> wrote in message
news:Og**************@TK2MSFTNGP10.phx.gbl...
Hi all,
Is there any examples or tutorials out there on making a component that
manages an Xml docuemnts. As far as SELECTING DELETING UPDATING and
INSERTING data to and from. Similar to querying a database through sql.

I am looking to create a component to wrap up some of the coding needed to
perform these queries.
Any one try this or know of some examples?
Thanks,
Ron Vecchi

Nov 15 '05 #2
I was continplating creating a shopping cart program for web use and I don't
want to rely on the shared hosting account having a database. I would
rather do it in XML. But yes a DataSet does seem like a good idea. I will
need to implement a Mutex around Inserts, Updates, and Deletes though.

My question is does the WriteXml() method rewrite the whole document over
the old one or does it just make changes in the document where changes in
the dataset are made?
Thanks
Ron Vecchi
"Michael Mayer" <mi**@mag37.com> wrote in message
news:uw**************@TK2MSFTNGP10.phx.gbl...
What about using a DataSet?

DataSet ds = new DataSet();
ds.ReadXml("xmlfile");
update, select, delete, etc from dataset...
ds.WriteXml("xmlfile");

Granted, if you have more than one process running, you'll have some
problems in terms of other updates to the xml file. But if you are looking for concurrent access, a database would be far preferable anyway.

--
Mike Mayer
http://www.mag37.com/csharp/
mi**@mag37.com
"Ron Vecchi" <ve******@comcast.net> wrote in message
news:Og**************@TK2MSFTNGP10.phx.gbl...
Hi all,
Is there any examples or tutorials out there on making a component that
manages an Xml docuemnts. As far as SELECTING DELETING UPDATING and
INSERTING data to and from. Similar to querying a database through sql.

I am looking to create a component to wrap up some of the coding needed to perform these queries.
Any one try this or know of some examples?
Thanks,
Ron Vecchi


Nov 15 '05 #3

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

Similar topics

12
by: Chien Lau | last post by:
I had a situation occur today that's happened a number of times before and I'd like to get your take on it: Imagine... You're developing a WinForms app for a client that includes the use charts....
4
by: orangepic333 | last post by:
Could someone tell me what's the difference between the two? Is it that a class is used within an OO language while a component can be exported between OO languages? Are there other...
2
by: Edward Diener | last post by:
How does one specify in a component that a property is a pointer to another component ? How is this different from a property that is actually an embedded component ? Finally how is one notified in...
0
by: Jordan Bowness | last post by:
I make a similar post in another newsgroup, but this example is simplified somewhat. I have a component (cmpMyComponent) with 2 properties. The 1st property is a string value (Description) and...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
1
by: Rob Griffiths | last post by:
Can anyone explain to me the difference between an element type and a component type? In the java literature, arrays are said to have component types, whereas collections from the Collections...
122
by: Edward Diener No Spam | last post by:
The definition of a component model I use below is a class which allows properties, methods, and events in a structured way which can be recognized, usually through some form of introspection...
7
by: Joe | last post by:
Is it possible to have a component which is global to the entire application? I need to have a single component act sort of like a server which components in any of the forms can access. For...
11
by: BillGatesFan | last post by:
I have a web service which calls a .NET queued serviced component in COM+. I turned statistics on for the component. I call the component 10 times, 10 objects get created but they do not go away....
0
by: bharathreddy | last post by:
In .Net COM+ components are referred to as serviced components, Namespace: System.EnterpriseServices; Advantage of Serviced Components: object pooling, database connection pooling,
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.