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

Saving/restoring strongly-typed DataTable to/from XML

I have a strongly-typed DataTable I need to save as XML and later
reload it.

I thought that all I had to do was:

menuDataTable.WriteXml(filename,XmlWriteMode.Write Schema);

And from another application do:

menuDataTable.ReadXml(filename);

But I keep getting... "DataTable 'ttMenuItemNS:ttMenuItem' does not
match to any DataTable in source."

Can anyone see what I am doing wrong here?

Thanks.

Jan 31 '07 #1
1 3972
Hi there

You have tp specify the schema when you read the xml document like:

menuDataTable.ReadXml(filename, XmlReadMode.ReadSchema);

Hope it helps

timnels:
I have a strongly-typed DataTable I need to save as XML and later
reload it.

I thought that all I had to do was:

menuDataTable.WriteXml(filename,XmlWriteMode.Write Schema);
>
And from another application do:

menuDataTable.ReadXml(filename);

But I keep getting... "DataTable 'ttMenuItemNS:ttMenuItem' does not
match to any DataTable in source."

Can anyone see what I am doing wrong here?

Thanks.
Feb 5 '07 #2

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

Similar topics

6
by: Nick Warrington | last post by:
Somebody let me loose with ASP and it was all going well until I hit (what I think is ) a minor problem. I am using IIS as a remote configuration tool to modify an XML config file on the server....
1
by: M&M | last post by:
Dear All, Do anyone know where I can find some useful documentation or any documentation about restoring database to the point in time (using logs). SQL Server 2000 on Win 2000 Thanks for...
3
by: sakuragirl1 | last post by:
I have vb code that gives a user the option to select the printer for printing a report. At the end I change the default printer back to what it was. Unfortunately the code I found is for win9x so...
5
by: Oleg Subachev | last post by:
When I try to use strongly named assembly1 that references non-strongly named assembly2 I get the following error: "The located assembly '<assembly2 name>' is not strongly named." How can I...
2
by: Fischer Ulrich | last post by:
Hi I have a problem with the restoring of a database which uses tsearch2. I made a backup as discribed in 'tsearch-v2-intro' on the tsearch2 page. Now i'm trying to restore it into a...
5
by: Mike Nolan | last post by:
I have a 600K row table on my production system (running 7.3.3) that I dump and load on my development system (7.4.1) every night using cron jobs. I would like to be able to restore the table...
0
by: Dennis Gearon | last post by:
If I have all sorts of triggers and constraints, The only way to have them applied incrementally to the data during restore or bulk load is to do the bulk load via individual INSERT statements,...
0
by: Chinns Arumugam | last post by:
Hello folks, I'm getting following error message in the reference.vb (created using add web feature of VS.Net) when invoking the our vendor web service which was created using Soap Toolkit 1.0. ...
15
by: Marcus Kwok | last post by:
How do you save the formatting options for a stream? In the program below, notice that when I define my operator<<() for the custom type, it permanently changes the output format of the stream: ...
2
by: chenert | last post by:
Hi all, im beginner to restoring dump files and postgresql as well so hope u could bear with me.! :D i have these dump files and i've been working on restoring everything in it. i've tried...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
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,...

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.