C# XML Serialisation Only Serialise Single Element in List
- by guazz
Given some sample XML such as:
<XML>
<EMPLOYEES>
<EMPLOYEE isBestEmployee="false">John"<"/EMPLOYEE>
<EMPLOYEE isBestEmployee="true">Joe"<"/EMPLOYEE>
<EMPLOYEE isBestEmployee="false">Bill"<"/EMPLOYEE>
</EMPLOYEES>
</XML>
How do I serialise just the employee with isBestEmployee="true" to a single Employee object?