Question

I'm using a TXMLTransformProvider to edit an XML files using a TClientDataSet (which is pretty cool). I want to be able to control the ordering of the nodes in the XML file - using a primary key or similar. But when I do ClientDataSet1.ApplyUpdates the new records are added to the end of the XML file rather than in my preferred order (the order I see them in the DBGrid). Is there a nice easy way to preserve my order or will I have to abandon my the TXMLTransformProvider for saving data and code it up manually using a TXMLDocument.

Was it helpful?

Solution

I gave up on this and manually outputted the xml from the TClientDataSet using a TXMLDocument, not the prettiest but works all the same.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top