Hi Thomas
I always got the impression that MDDDL was for saving a document that had already been designed for the purpose of debugging more than anything. I'll admit, I've not really done much with DDLs, but from the samples that are available I've never seen any way that they allow you to pass in data to be inserted within your document. It could be that this is supported and I've just missed it, there doesn't seem to be too much online regarding what you can do with DDLs.
You mention there used to be an editor for mixing MDDDL & C#, does that still exist in any form? I'd be interested to see how it was implemented. Also, did that then mean that the files were compiled? Because that was the one issue I had with razor pages when I wanted to make a small layout change to my pages and had to redeploy my web app to do so.
Regarding advantages of XML or MDDDL...I don't think the format of the file itself isn't really what's significant, the reason I chose to store files as xml is just because it's pretty much become industry standard format for defining document layouts. Also, you're right, I don't currently have a schema file, which could actually be very helpful. For the time being I've just been making sure the library actually works.
I wrote this project mainly for myself as I can really see this providing a huge boost to how I work with MigraDoc. I'll try and win you over to my library
if only because I'd love to know that other people are getting use out of it too. The problem this is aiming to solve for me is that I've found the documents I produce for customers often seem to be running off pretty much the exact same data, but with each of them having different requests of how they want things laid out. With the way I'm using migradoc at the moment it means either lots of conditional logic or else customer-specific plugins just for document layout changes, neither of which are at all ideal. Storing the layout outside of my assembly along with information of how data should be populated into it means I just need to change one xml file.
James