E
echoSwe
Hi,
I have rich domain model, in which one entity is the "Page". This
object contains a field; "ChildPages : IList<Page>" and a couple of
data-fields, like description, title, text, etc... It inherits from
AbstractPost which implements the IPost interface. AbstractPost
defines many of the common properties amongst the different types of
pages I have in the domain model.
My question is simple: How do I serialize the collection of pages my
application holds, into an xml-file such as
<pages>
<page>
<title>...</title>
[...]
</page>
<page>
[...]
</page>
</pages>
I don't want it to save to the harddrive and I need to be able to
exclude fields from being included in the xml file; hopefully so with
by using attributes. I need the xml document to do xsl transformations
on...
I have rich domain model, in which one entity is the "Page". This
object contains a field; "ChildPages : IList<Page>" and a couple of
data-fields, like description, title, text, etc... It inherits from
AbstractPost which implements the IPost interface. AbstractPost
defines many of the common properties amongst the different types of
pages I have in the domain model.
My question is simple: How do I serialize the collection of pages my
application holds, into an xml-file such as
<pages>
<page>
<title>...</title>
[...]
</page>
<page>
[...]
</page>
</pages>
I don't want it to save to the harddrive and I need to be able to
exclude fields from being included in the xml file; hopefully so with
by using attributes. I need the xml document to do xsl transformations
on...