Click here to Skip to main content
15,915,864 members
Home / Discussions / C#
   

C#

 
GeneralRe: Disabling of Close Form option Pin
PIEBALDconsult28-Mar-08 6:27
mvePIEBALDconsult28-Mar-08 6:27 
NewsCodeForms Lite v4.0 Released (FREEWARE) Pin
Rafael Agundis21-Feb-08 15:24
Rafael Agundis21-Feb-08 15:24 
GeneralRe: CodeForms Lite v4.0 Released (FREEWARE) Pin
Christian Graus21-Feb-08 16:13
protectorChristian Graus21-Feb-08 16:13 
GeneralCombo Box slected index changed Pin
msx2321-Feb-08 11:57
msx2321-Feb-08 11:57 
GeneralRe: Combo Box slected index changed Pin
Christian Graus21-Feb-08 12:39
protectorChristian Graus21-Feb-08 12:39 
GeneralRe: Combo Box slected index changed Pin
darkelv21-Feb-08 13:06
darkelv21-Feb-08 13:06 
GeneralRe: Combo Box slected index changed Pin
DaveyM6921-Feb-08 23:36
professionalDaveyM6921-Feb-08 23:36 
GeneralObject Serialization Pin
geekfromindia21-Feb-08 8:09
geekfromindia21-Feb-08 8:09 
hi frnds,

I have a requirement for serializing an object to XMLDocument Object. I have got few examples of converting a class with few properties to a simple XML as below:

Class:
class Person<br />
{<br />
    private string strName;<br />
    private int iAge;<br />
<br />
    public String Name{<br />
        get{    return strName; }<br />
        set{    strName= value; }<br />
    }<br />
    public int Age{<br />
        get{    return iAge;  }<br />
        set{    iAge= value;  }<br />
    }<br />
}


XML:
<Person><br />
     <Name>Anthony</Name><br />
     <Age>38</Age><br />
 </Person>


Now the problem is that my XML is not this simple. It would be something like:
<Company>
    <Name> </Name>
    <Employee>
       <Name>A</Name>
       <Age>1</age>
    </Employee>
    <Employee>
       <Name>B</Name>
       <Age>2</Age>
     </Employee>
     ..
     ..
     ..
</Company>

Do we need to use composition here?? Any suggestions??

Thanks

Keep DotNetting!!

GeekFromIndia

GeneralRe: Object Serialization Pin
TheGreatAndPowerfulOz21-Feb-08 8:26
TheGreatAndPowerfulOz21-Feb-08 8:26 
GeneralRe: Object Serialization Pin
geekfromindia21-Feb-08 8:52
geekfromindia21-Feb-08 8:52 
GeneralRe: Object Serialization Pin
TheGreatAndPowerfulOz21-Feb-08 9:18
TheGreatAndPowerfulOz21-Feb-08 9:18 
GeneralRe: Object Serialization Pin
Not Active21-Feb-08 9:22
mentorNot Active21-Feb-08 9:22 
GeneralVery weird kernel32 memory reading results. Pin
Jitse21-Feb-08 7:05
Jitse21-Feb-08 7:05 
GeneralRe: Very weird kernel32 memory reading results. Pin
TheGreatAndPowerfulOz21-Feb-08 8:44
TheGreatAndPowerfulOz21-Feb-08 8:44 
GeneralRe: Very weird kernel32 memory reading results. Pin
Jitse21-Feb-08 10:03
Jitse21-Feb-08 10:03 
QuestionEmail application Pin
N4D33M21-Feb-08 6:28
N4D33M21-Feb-08 6:28 
GeneralRe: Email application Pin
TheGreatAndPowerfulOz21-Feb-08 7:01
TheGreatAndPowerfulOz21-Feb-08 7:01 
GeneralRe: Email application Pin
N4D33M21-Feb-08 8:16
N4D33M21-Feb-08 8:16 
GeneralRe: Email application Pin
TheGreatAndPowerfulOz21-Feb-08 8:22
TheGreatAndPowerfulOz21-Feb-08 8:22 
GeneralRe: Email application Pin
Christian Graus21-Feb-08 10:52
protectorChristian Graus21-Feb-08 10:52 
GeneralRe: Email application Pin
N4D33M22-Feb-08 1:45
N4D33M22-Feb-08 1:45 
QuestionQuestion about a TextBox with the MultiLine property set to True Pin
blakey40421-Feb-08 5:11
blakey40421-Feb-08 5:11 
GeneralRe: Question about a TextBox with the MultiLine property set to True Pin
J4amieC21-Feb-08 5:21
J4amieC21-Feb-08 5:21 
GeneralRe: Question about a TextBox with the MultiLine property set to True Pin
blakey40421-Feb-08 5:43
blakey40421-Feb-08 5:43 
JokeRe: Question about a TextBox with the MultiLine property set to True Pin
Le centriste21-Feb-08 5:54
Le centriste21-Feb-08 5:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.