以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DTD/XML Schema 』  (http://bbs.xml.org.cn/list.asp?boardid=23)
----  关于XSD文件生成*.cs文件得几个问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=52212)


--  作者:rulinwang
--  发布时间:9/5/2007 1:52:00 AM

--  关于XSD文件生成*.cs文件得几个问题
最经用xml得架构开发软件,实体类我们打算完全用官方组织发布得xsd来用.net framework中得工具生成*.cs,由于xsd文件比较多,问题来了:
1.如果再xsd中声明了一个元素为联合类型得话(例如<xsd:union memberTypes="DeleteMethodLocationType xStringPatternExtensionType" />),生成cs将会出现默认成string类型。
2.当用多个xsd生成多个cs文件时,类中可能会出现重复现象,编译会出现已经声明。(parentA.xsd includes childA.xsd and childB.xsd ,but the parentB.xsd also includes the childA.xsd and the childB.xsd ,so when we create the *.cs files,there the class childA and the class clildB turns two times,but in the project ,I want the clildA and clildB class turn out only one time, I cannot solute this toubleshot )
3.当ParentA and ParentB 中都包含 childA时,但是clildA 再这两个父架构中定义了不同得元素类型,却用了同一个名字,同样会报错误,说已经声明过了,此问题未解决。
4.关于命名空间得问题,.........

有谁知道这些或者部分,或者一些好点得资料,请告知我,真的很感谢,请发我得mail:wangrulinec@sina.com谢谢啦,真的很感谢,我在苦闷中。。。。。。


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
42.969ms