开发者

Merging Multiple XSD files

开发者 https://www.devze.com 2023-01-30 14:19 出处:网络
I have around 6 individual xsd schemas that define one complex type each. I want t开发者_JAVA百科o create a master xsd schema and include all six of the xsd so that I can generate an xml document that

I have around 6 individual xsd schemas that define one complex type each. I want t开发者_JAVA百科o create a master xsd schema and include all six of the xsd so that I can generate an xml document that can contain an element from each individual schema. Can this be done?


Yes, you can use <xs:import> or <xs:include> to incorporate the six individual files into one "master" schema.

Be careful which of <xs:import> or <xs:include> you use, though, they're quite different in what they mean, but without knowing anything about your schema, I can't advise you which to use.

0

精彩评论

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