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

Saving Data in XML Files

Hi,

I need to save data into a XML file using an existing schema (I have the
..xsd file)

If the record exists then the data must be read from the DB in MS Access
2000 and saved into a XML file.

If the record does not exist then the apps must create a new record into XML
file (this record must not be saved into the database)

The application is being developed in VB.NET

Any idea?

Thanks

Sean
Jul 21 '05 #1
5 1701
Sean,

To be more sure of your question, why not create a XML dataset from your
access file and than process that?

Cor
Jul 21 '05 #2
Hi Cor

When I try to generate the dataset for the schema from VS.NET, I get the
following error message: "Tha same table (Customers) cannot be the child
table in two nested relations"

I musn't change the structure of the schema, because it is being used to
share the same information among our business customers.

I wonder if is there a way to create an instance from my schema file and so
create a XML file with this structure? Then once I have all my entries in the
win form, I should to walk for each part of the XML file to save the data ...
Does make sense? or am I wrong?

I am all ears for your advices

Thanks

Sean
"Cor Ligthert" wrote:
Sean,

To be more sure of your question, why not create a XML dataset from your
access file and than process that?

Cor

Jul 21 '05 #3
Sean,

I don't know how to answer you.

Can you tell me what is your starting point.

I assume an access database, than what you want to do with the data and what
tables.

(And what version from VB.Net that you have or VS.Net).

Cor

Jul 21 '05 #4
Thanks Cor for your reply

Okay, this is the scenario:

I have an ASP.NET web-application that create .xml files according to a
defined schema and they are sent out to our customers to review and/or to
update the information.

I need to create a new VB.NET application (in the customer side) :

1. That receives these .xml files and allow to modify the data into these
..xml files and then send out these .xml files to the web-application for
validation

2. Create new .xml files from the VB.NET Application using the records into
a MS Access database and send these .xml files to the web-application for
validation

3. Create new .xml files from the VB.NET apps if some records does not exist
in the MS Access database (i.e.: new products to request) and send these .xml
files to the web-application for validation.

As you see, I need to use the same schema to generate the .xml files and so
both applications (web and win) can exchange the same data with the same
structure.

I was asked that I musn't change the schema ... I tried to generate the
dataset for this schema from Visual Studio.NET Architecture 2002 but I got an
error message

If you have some idea or suggestion to work out this issue I would
appreciate it.

Sean.

"Cor Ligthert" wrote:
Sean,

I don't know how to answer you.

Can you tell me what is your starting point.

I assume an access database, than what you want to do with the data and what
tables.

(And what version from VB.Net that you have or VS.Net).

Cor

Jul 21 '05 #5
Sean,

What you tell, makes it probably more difficult, it has the behaviour you
tell.

The approach will probably be to use the xmlDataDocument class or the
xmlnodereader and the xmltextwriter.

xmlDataDocument(when you click on the links in the page you get more
information by instance the constructor
http://msdn.microsoft.com/library/de...ClassTopic.asp
The writer is as well a possibility
http://msdn.microsoft.com/library/de...hXmlWriter.asp

The reader another
http://msdn.microsoft.com/library/de...classtopic.asp

When I hear about XML and access I start alwayst to think about datasets. I
don't assume that your XML files are that.

I would if I was you and have more problems ask them crossposted (when that
is relevant) in the newsgroups.
microsoft.public.dotnet.languages.vb
and
microsoft.public.dotnet.xml
and
microsoft.public.dotnet.framework.aspnet

I think that this all the help I can give you until now.
(I am as well active in the language.vb newsgroup however not in XML and
ASPNET)

I hope this helps,

Cor

Jul 21 '05 #6

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

Similar topics

0
by: mchl gdbt | last post by:
Hi, I have several thousand tiffs generated by application A which are read by application B. I need to remove a few colours from the tiffs and I decided to try with the python imaging library....
7
by: G-Factor | last post by:
Hi all I've just started learning about saving files. I got bit of a problem. The following code gives me an error about incompatible types. (Cannot covert from class character to char *). I...
6
by: Ramesh | last post by:
Hi, We are receiving an error 'The operation has timed out' when our ASP.NET application on Web Server stores large files 10MB+ on the App Server using HTTP PUT. This is a Server to Server...
3
by: JamesB | last post by:
I am saving image files from my website using the downloaddata on the web client. This gives me a byte array, which I am then saving to a file with the following code: ' Create the new, empty...
5
by: Sean | last post by:
Hi, I need to save data into a XML file using an existing schema (I have the ..xsd file) If the record exists then the data must be read from the DB in MS Access 2000 and saved into a XML...
5
by: TheGanjaMan | last post by:
Hi everyone, I'm trying to write up a simple image stamper application that stamps the Exif date information from the jpegs that I've taken from my digital camera and saves the new file with the...
4
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my...
10
by: JoeC | last post by:
I am writing a game and all my game pieces are stored in a single vector of piece handles. I have the basics I can read and write char and number files but I am trying to do comthing more...
3
by: pozze | last post by:
Hi, I've just made the change from ASP to .net. I have a file (code below) that saves a user submitted file to a MS SQL 2005 database. It collects the file name, file size, file type, and lastly...
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?
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...
0
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
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...
0
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
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...

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.