Re: Transforming XML from Data Objects



Jeff.Thorn@xxxxxxxxx wrote:

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.

You could serialize the objects to XML, then process that XML as needed with XSLT stylesheets to create the different outputs you want.

There also is some (.NET 1.0) tool named ObjectXPathNavigator
http://msdn.microsoft.com/en-us/library/ms950764.aspx
that could be directly fed to an XSLT transformation, I don't know however how easy it is to port that to .NET 2.0.


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
.


Loading