473,785 Members | 2,824 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dataset -> XML -> Access .adp file

Good morning everyone,

Using C# I create a bog-standard System.Data.Dat aTable
which I then Add to a System.Data.Dat aset.

I need to import that structure into an Access .adp file
so I have taken the approach of using XmlTextWriter to
create an xml file. This works just fine and the IDE can
certainly read it back and interpret it correctly. But
Access cannot. It tells me that it cannot create table
using the information contained in the document.

If someone knows the details could you please tell me what
I need to do to make this happen. Clearly the VS C#
implementation and Access are meant to be able to
communicate through this mechanism and it seems that I
have chosen wrong settings for some factor somewhere.

The code I used to write the file (this come more or les
directly from the Help on XML) is:

private void WriteSchema()
{
string fn = @"C:\InfoMan\In foData\mySchema .xml";

System.IO.FileS tream fs =
new System.IO.FileS tream(
fn,System.IO.Fi leMode.Create );

System.Xml.XmlT extWriter xw =
new System.Xml.XmlT extWriter( fs,
System.Text.Enc oding.Unicode );

_DataSet.WriteX mlSchema( xw );
xw.Close();
}

Thanks in advance for any advice you can give me,

Plumer

Nov 15 '05 #1
0 2073

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

Similar topics

0
352
by: Alex | last post by:
I found some good information On Saving a DataSet as an XML File at this site http://www.dedicatedsolutions.co.uk/DesktopDefault.aspx?tabid=62 It is worth the click
3
1492
by: Maury | last post by:
Hi, I would like to persist a Dataset Table in an Access Table I have a Access Database and I saved the data in a XML file: string strSQL = "SELECT * FROM "+TableName; OleDbDataAdapter myDataAdapter = new OleDbDataAdapter(strSQL, myConnection); DataSet myDataSet = new DataSet();
12
1989
by: facicad | last post by:
Look my prog. I have combobox where is have all tables names of access file. The user select one table and the content is show in datagrid. The user can add, erase or modify some record or row. Until now is ok but went I want to update access file, VB send me error. Some body can help me Dim myCnn As New OleDb.OleDbConnection Dim objDataAdapteur As OleDbDataAdapter
5
2661
by: John Nagle | last post by:
This, which is from a real web site, went into BeautifulSoup: <param name="movie" value="/images/offersBanners/sw04.swf?binfot=We offer fantastic rates for selected weeks or days!!&blinkt=Click here And this came out, via prettify: <addresssnippet siteurl="http%3A//apartmentsapart.com" url="http%3A//www.apartmentsapart.com/Europe/Spain/Madrid/FAQ"> <param name="movie" value="/images/offersBanners/sw04.swf?binfot=We offer
2
1455
by: Nupur | last post by:
Hi!!Can anyone tell me how to export data from database(or dataset) into a .CSV file using a C#.net windows application. Please someone reply soon
0
836
by: mnor07 | last post by:
Hello Everyone, I am trying to read/write from an Access Database (in Visual Basic). I have created the binding source, dataset, adapter and linked to my db. At this point I need to know where/how to insert the code to read/write to my Access file. If anyone could simply tell me what steps/in what order I need to take to do this I would be grateful. Thanks
1
1377
by: markliam | last post by:
Is there a a quick way of appending a dataset to an XML file, or does the XML file need to be read into a new dataset and then re-saved with a new dataset containing both old/new data?
3
1253
by: cmrhema | last post by:
Hi, I want to send reports using email. I am going to retrieve the results in a dataset. Thereafter I want to store it in a text file and this text file i want to send as an attachment to the client. I know how a send an attachment in the mail. But I do not know how to convert the result I retrieve in the dataset to a text file. Kindly let me know how to do. Regards
3
1420
by: Zabooster | last post by:
I have a project to submit in a few hours' time. In order to explain what I need clearly, I will provide a very simple example. Suppose I have an application consisting of 3 forms- The first has a textbox(txtName) and a button leading to the second form. The second has another textbox(txtFamilyName) and a button both leading to the third form and sending the info to a row in MS Access. The third only has a button coming back to form1 so that...
4
2747
rizwan6feb
by: rizwan6feb | last post by:
I am working on an application in VB.NET and MySql. I am getting a duplicate entry for key 1 error. My application goes through the following steps. 1. Populate my DataSet from the database. 2. Make changes in the DataSet 3. Write the DataSet into XML file using the following statement ds.WriteXml("file1.xml", XmlWriteMode.WriteSchema) 4. Read the DataSet from the XML file (after restarting the application) using the following code...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10324
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9949
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8971
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.