开发者

how to write xml schema(XSD)

开发者 https://www.devze.com 2023-02-16 23:37 出处:网络
I want to right one XML schema(XSD) in which 开发者_高级运维element have multiple occurences and have one attribute ID

I want to right one XML schema(XSD) in which 开发者_高级运维element have multiple occurences and have one attribute ID I want validate if borrower's ID attribute have a value equal to 1 then all its subelement must have some value. is this possible with XSD? Please suggest me if their is a way to achieve this thanks


Not possible as far as I can remember, but it is totally OK to first validate the XML using XSD and then have some additional, application-specific validation logic on top of that.

0

精彩评论

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