PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Save document as XML
http://forum.pdfsharp.com/viewtopic.php?f=2&t=869
Page 1 of 1

Author:  briant [ Sun Sep 13, 2009 9:27 pm ]
Post subject:  Save document as XML

Hello again,

I see that you can save and reload a prepared document as a mdddl file.

I like the fornat of the mdddl file, however I would also like the prepared document class to be able to be serializable in .NET via the XmlSerializer.

When I tried to serialize a document as xml, I got various serialize errors. I then took the source code and made some changes to fix the errors (mainly adding serializeble attributes and hacking a bit), but it was getting a bit messy so I gave up.

It there a reason why the document class is not serializable? would it be difficult to make it serializable from .NET.

I have nothing against the mdddl file format, but my company is bending towards xml, and hence it would be preferable if possible.

Cheers,
Brian

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/