Possible duplicate:
How to deserialize an XML document
Suppose I have a class defined in C #:
public class Book { public string Title {get; set;} public string Subject {get; set;} public string Author {get; set;} }
Suppose I have XML that looks like this:
<Book> <Title>The Lorax</Title> <Subject>Children Literature</Subject> <Author>Theodor Seuss Geisel</Author> <Book>
If I would like to instantiate the Book class using this XML, the only way I know this is to use the XML Document class and list the XML nodes.
Does the .NET Framework provide any way to create classes using XML? If not, what are the best methods for doing this?
Daniel Allen Langdon
source share