I'm wanting to offer a way to save work in an application. It is a sort of project functionality. The projects need to be serialized to XML. I've got DataContractSerializer generating the XML, but I need to be able to select a location in an XML file for it to serialize to instead of writing a complete file for itself since there will be multiple projects and I will need to be able to de/serialize these projects individually from a Projects XML file.
What I would like for XML:
<Projects>
<Project>
<ID>...</ID>
<Name>...</Name>
<LastEdited>...</LastEdited>
...
</Project>
<Project>...</Project>
<Project>...</Project>
</Projects>
I would then serialize and deserialize based on the Project ID using Linq to XML to navigate the doc.
Any suggestions? Much thanks in advance.