I export data from my model using datasets and write them to xml.
Why are you using dataSets?
LLBLGen Pro supports XML serialization.
Please check the LLBLGen Pro manual "Using the generated code -> XML Support (serialization, de-serialization)"
As far as I remember, the Entity Factory gets generated in the XML (not in the Compact25 type)