Assume we have some DataTable or IEnumerable with ChildID, ParentID and Title. We need to serialize it to XML like
<Entity title="">
<Entity title=""></Entity>
<Entity title=""></Entity>
</Entity>
As i found out, standard DataTable.GetXML() returns something different. I thought about initializing class tree like Entity e = new Entity(ID, Title, ParentEntityID) and then serializing it. Table is about > 3000 elems. Is there faster way?