开发者

Can xsd.exe's generated classes identify required attributes

开发者 https://www.devze.com 2023-03-23 01:54 出处:网络
Is it possible to have xsd.exe add \"IsNullable=false\" to XmlAttribute开发者_如何学JAVAs for fields/properties that are defined in the schema as being required?

Is it possible to have xsd.exe add "IsNullable=false" to XmlAttribute开发者_如何学JAVAs for fields/properties that are defined in the schema as being required?

Xjc adds it to the Java annotation, but I haven't found a way to get Xsd.exe to do something similar.

I'm trying to use reflection to do a merge of our configuration files that isn't configuration file type dependent. I want to use the required attributes of an element to determine if that element exists in both files or just one.

0

精彩评论

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