如何以编程方式从XSD生成.NET类?(就像xsd.exe一样) [英] How to programmatically generate .NET classes from XSD? (Like xsd.exe do)

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

问题描述

我想以xsd.exe的方式生成类,而不是 linq toxsd的方式.

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

推荐答案

查看 System.Xml.Serialization.XmlCodeExporter 类.

更新(以防约翰·桑德斯(John Saunders)不打扰进一步阅读)

UPDATE (in case John Saunders didnt bother reading further)

"Xsd.exe使用XmlCodeExporter来从XML模式生成类定义(XSD)文档."

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

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

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