开发者

XML to XAML conversion

We have about 1400 xml files which we use to store da开发者_如何学Pythonta around the look and feel of the controls used to load dynamically in winform applications. We want to convert these XML to XAML. Is there any easy way to get this done?


xslt was invented for this purpose.

However, if you're not familiar with xslt and you already have .NET skills, then LINQ to XML has made manipulating XML extremely easy, so you could use that.


I think that with xslt you will be able to handle the problem.


if you are using .net 4 and the xml can be deserialised into .net objects then I'd suggest deserialising the XML and reserialising using Xaml - see here http://blogs.msdn.com/bursteg/archive/2009/05/18/xaml-in-net-4-0-serialization-and-deserialization-using-xamlservices.aspx for how to use the System.Xaml namespace.

However I think xslt my be the fastesr approach otherwise

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜