开发者

can xsd definition of type reference the xml file itself?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜