[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

XSD.EXE /CLASSES does not give LoadFromXml and WriteToXml methods...

Posted on 2007-07-30
1
Medium Priority
?
198 Views
Last Modified: 2013-12-17
I am using C# 1.1. I have an XSD that I want to use to maintain XML files. I tried generating the DataSet out of this XSD to do this, but the DataSet was too confusing with all the tables and columns. So I ended up creating classes for this schema using:

xsd.exe /c /n:<my namespace> File.xsd

The class came out the way I want to, but this class does not have LoadXml or WriteXml type methods. Without these methods, it would be tough for me to handle the XML. Shouldn't the generated class already contain these methods? How do I get these methods?
0
Comment
Question by:srinivas_vemla
1 Comment
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 2000 total points
ID: 19594615
You just use the XML serializer on the document and it generates the classes... The opposite is you take the classes and use the XML serializer and it generates a document.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month19 days, 6 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question