Home All Groups Group Topic Archive Search About

Reads XML node from App.Config and populates a Class

Author
9 Mar 2006 4:36 PM
PH
Hi guys;

I got the following problem to solve, hope you can help me.

I got a XML node in App.Conf;


<CUSTOMERS>
<CUSTOMER>
<NAME =”Frank” />
<LASTNAME =”Smith”/>
<AGE= 34 />
</CUSTOMER>

<CUSTOMER>
<NAME =”Lisa” />
<LASTNAME =”Tucker”/>
<AGE= 42 />
</CUSTOMER>
<CUSTOMERS/>

I will like to populate a class called Customers that has the same
structure than the XML node Customers, with all the Customer nodes.
Is there any automated way to do this in the framework?

Thanks very much

Author
9 Mar 2006 5:18 PM
zacks
In a word, XMLSerialization.
Author
9 Mar 2006 10:38 PM
PH
This is what I need.
Thanks


-----Original Message-----
From: za***@construction-imaging.com
[mailto:za***@construction-imaging.com]
Posted At: Thursday, March 09, 2006 12:18 PM
Posted To: microsoft.public.dotnet.languages.vb
Conversation: Reads XML node from App.Config and populates a Class
Subject: Re: Reads XML node from App.Config and populates a Class

In a word, XMLSerialization.