开发者

Can xsd.exe's generated classes identify required attributes

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜