M
Mark Collard
Hello
I've created the following XML file:
<?xml version="1.0" encoding="utf-8"?>
<Company>
<Languages>
<Language>
<Name>English</Name>
<Code>1234</Code>
<Connect>54</Flag>
</Language>
<Language>
<Name>French</Name>
<Code>4567</Code>
</Language>
</Languages>
</Company>
I've also created a Language class that has the following properties
- string Name
- int Code
- int Connect
And a Language collection class called LanguageCollection.
Can someone please tell me what is the easiest / best way is to read the
values from the XML file and store them in a collection of Language of
objects.
Please note that not ever Language will be fully populated in the XML file.
For example, the French language doesn't have a Connect value in the above
XML file
Thank you for your help.
I've created the following XML file:
<?xml version="1.0" encoding="utf-8"?>
<Company>
<Languages>
<Language>
<Name>English</Name>
<Code>1234</Code>
<Connect>54</Flag>
</Language>
<Language>
<Name>French</Name>
<Code>4567</Code>
</Language>
</Languages>
</Company>
I've also created a Language class that has the following properties
- string Name
- int Code
- int Connect
And a Language collection class called LanguageCollection.
Can someone please tell me what is the easiest / best way is to read the
values from the XML file and store them in a collection of Language of
objects.
Please note that not ever Language will be fully populated in the XML file.
For example, the French language doesn't have a Connect value in the above
XML file
Thank you for your help.