Connecting Tech Pros Worldwide Forums | Help | Site Map

Transforming XML from Data Objects Options

Jeff.Thorn@gmail.com
Guest
 
Posts: n/a
#1: Sep 11 '08
Hello All,

I have a collection of data objects that are based on my
application's
data model. I want to be able to serialize this data to different XML
formats (schemas) for use by different consuming applications. For
example, I want to generate XML from the data one way for
Application1, and generate XML in a different format for use by
Application2.


I don't think I can just serialize my objects as XML because I would
lose the flexbility to choose the output schema.


Is there something built into the .NET framework that will allow this
to be done easily? It would be nice if there was some time of
template
based system for generating XML from objects. As far as I know, you
can't really apply XSLT transforms from objects.


Any suggestions?


Thanks,
Jeff




Cor Ligthert[MVP]
Guest
 
Posts: n/a
#2: Sep 13 '08

re: Transforming XML from Data Objects Options


Jeff,

As I understood your question well, then this is probably the most obvious
one.

Linq to XML

http://msdn.microsoft.com/en-us/library/bb387061.aspx

Cor


<Jeff.Thorn@gmail.comschreef in bericht
news:055edcdf-0326-450b-9e9f-d8d94750e6ab@k37g2000hsf.googlegroups.com...
Quote:
Hello All,
>
I have a collection of data objects that are based on my
application's
data model. I want to be able to serialize this data to different XML
formats (schemas) for use by different consuming applications. For
example, I want to generate XML from the data one way for
Application1, and generate XML in a different format for use by
Application2.
>
>
I don't think I can just serialize my objects as XML because I would
lose the flexbility to choose the output schema.
>
>
Is there something built into the .NET framework that will allow this
to be done easily? It would be nice if there was some time of
template
based system for generating XML from objects. As far as I know, you
can't really apply XSLT transforms from objects.
>
>
Any suggestions?
>
>
Thanks,
Jeff
>
Closed Thread


Similar .NET Framework bytes