.NET 中的 XML 绑定解决方案
.net 中是否有合适的 xml 绑定(映射)解决方案(OXM)?我需要的是从任意 xml 生成模型类。目前我在 Java 中找不到像 JaXB 1/2、JiBX、Castor XML、XMLBeans 这样的东西。
Are there any proper xml binding(mapping) solutions (OXM) in .net? What I need is to generate model classes from arbitrary xml. As for now I can't find anything like JaXB 1/2, JiBX, Castor XML, XMLBeans in Java.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我不确定你到底在寻找什么......但你可以看看 xsd.exe。它可以做一些非常巧妙的事情。
I am not sure what exactly you are looking for...but you can take a look at xsd.exe. It can do some pretty neat stuff.
查看MyGeneration。我想这可能正是您所需要的。我们在之前的项目中将它用于一些 ORM,但它的用途非常广泛。
Look at MyGeneration. I think this might be just the thing you need. We used it for some ORM in previous projects but it's pretty versatile.
我在此处找到了 xml 绑定解决方案的一个很好的概述
XMLObjects 库似乎合适
I've found here a nice overview of xml binding solutions
XMLObjects library seems suitable
您可能想研究无模式数据绑定方法(下面是 URL)
http://www .codeproject.com/KB/XML/schemaless_binding.aspx
You may want to investigate schemaless data binding approach (below is the URL)
http://www.codeproject.com/KB/XML/schemaless_binding.aspx
还有一种无模式数据绑定方法,这里是介绍性文章
http: //www.codeproject.com/KB/XML/schemaless_binding.aspx
There is also an schemaless approach to data binding, here is a link to an introductory article
http://www.codeproject.com/KB/XML/schemaless_binding.aspx