Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Creating an object out of an XML file

$
0
0

I need to create an XML file and send it over to an external client. We have an agreed upon layout with about 100 fields. We have a master layout and within that there is a place to send variables. Something like:

<Request>

<name/>

<email/>

<variabledata>

<variable1> value </variable1>

..

</variabledata>

</Request>

How do I approach this? I want to create an object for the file. I mean something like:

public class Request

string name

string email

and so on and so forth. So my aim is to make sure I can convert the XML into this object and vice versa.

Thanks!


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>