如何programmaticly从XSD生成.NET类? (像XSD.EXE办) [英] How to programmaticly generate .NET classes from XSD? (Like xsd.exe do)

查看:113
本文介绍了如何programmaticly从XSD生成.NET类? (像XSD.EXE办)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想生成的类XSD.EXE的方式,而不是在 LINQ toxsd方式。

I'd like to generate the classes the xsd.exe way and not the linqtoxsd way.

谢谢, --Ran。

推荐答案

看<一href="http://msdn2.microsoft.com/en-us/library/system.xml.serialization.xml$c$cexporter">System.Xml.Serialization.Xml$c$cExporter类。

更新(在约翰·桑德斯didnt打扰进一步阅读)

UPDATE (in case John Saunders didnt bother reading further)

XSD.EXE使用XML codeExporter到   生成XML架构类   定义(XSD)文件。

"Xsd.exe uses XmlCodeExporter to generate classes from XML Schema Definition (XSD) documents."

这篇关于如何programmaticly从XSD生成.NET类? (像XSD.EXE办)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆