custom serialization
Posted: Fri Aug 04, 2006 12:36 pm
Hello,
When I serialize a report template, I serialize it as part of a larger object that contains additional serializable objects. (Some of my classes implement IXmlSerializable) Currently, my class stores the serialized template as a string. But this results in ugly and difficult-to-read XML for the section that contains the template string:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<StiSerializer version="1.0" application="StiReport">
<Dictionary Ref="1" type="Dictionary" isKey="true">
</Dictionary>...
...</StiSerializer>
Do you have any suggestions? Is there a field in StiReport in which I may store my own serializable objects?
Thanks,
Spruce
When I serialize a report template, I serialize it as part of a larger object that contains additional serializable objects. (Some of my classes implement IXmlSerializable) Currently, my class stores the serialized template as a string. But this results in ugly and difficult-to-read XML for the section that contains the template string:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<StiSerializer version="1.0" application="StiReport">
<Dictionary Ref="1" type="Dictionary" isKey="true">
</Dictionary>...
...</StiSerializer>
Do you have any suggestions? Is there a field in StiReport in which I may store my own serializable objects?
Thanks,
Spruce