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 / .NET Framework / XML / February 2008

Tip: Looking for answers? Try searching our database.

Using the classes created with xsd.exe

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jerry C - 21 Feb 2008 23:04 GMT
I have created classes from several xsd files. These files create about 150
classes and spot checking them they do represent types in the xsd files. the
question is how do I use these files. How do I load data into them and create
xml from them. Is there some articles about this subject.

Thank you,

Signature

Jerry

Steven Cheng - 22 Feb 2008 05:44 GMT
Hi Jerry,

As for the classes you've generated, are they normal classes or dataset
classes?  As for the normal classes you generated through xsd.exe, you can
use XML serialization to convert those class instances into XML content or
deserialize the XML content back into object instances.

The class used to perform XML serialization in .NET framework is
XmlSerializer class.  You can look for more info about XML serialization in
the following reference:

#XML Serialization in the .NET Framework
http://msdn2.microsoft.com/en-us/library/ms950721.aspx

#Introducing XML Serialization
http://msdn2.microsoft.com/en-us/library/182eeyhh(VS.71).aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: =?Utf-8?B?SmVycnkgQw==?= <jerryed@nospam.nospam>
>Subject: Using the classes created with xsd.exe
>Date: Thu, 21 Feb 2008 15:04:00 -0800

>I have created classes from several xsd files. These files create about 150
>classes and spot checking them they do represent types in the xsd files. the
>question is how do I use these files. How do I load data into them and create
>xml from them. Is there some articles about this subject.
>
>Thank you,
Jerry C - 26 Feb 2008 10:11 GMT
Steven,

Thank you for your reply the sites helped a lot. I also found this site that
helped.
http://www.codeproject.com/KB/XML/Serialization.aspx?display=Print

Thank you
Signature

Jerry

> Hi Jerry,
>
[quoted text clipped - 35 lines]
> >
> >Thank you,

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.