C# XML Serialisation Only Serialise Single Element in List
Posted
by guazz
on Stack Overflow
See other posts from Stack Overflow
or by guazz
Published on 2010-05-27T21:10:43Z
Indexed on
2010/05/27
21:21 UTC
Read the original article
Hit count: 262
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?
© Stack Overflow or respective owner