开发者

can xsd definition of type reference the xml file itself?

开发者 https://www.devze.com 2023-03-28 05:49 出处:网络
I am trying to describe a set of java classes using XML. I need to have an xsd document as robost as possible, so it saves me headaches later on.

I am trying to describe a set of java classes using XML. I need to have an xsd document as robost as possible, so it saves me headaches later on. Suppose I have a class node inside which I have a set or properties. Each property have a type attribute, the value of this attribute could be a class name in the xml document, or a set of primitive names like "integer" "float" etc.

Can this scenario be def开发者_Python百科ined in a xsd document?

thanks a bunch.


It can be achieved with ref/refid and key in the xsd.

0

精彩评论

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