且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

XML模式以限制一个字段基于另一个字段

更新时间:2022-05-02 02:47:38

对不起,XML模式无法做到这一点.

Sorry, XML Schema can't do that.

一些类似的问题:

  • can the length of two xml lists be defined as being required to be equal?
  • Restrict Element Values Based on Attribute
  • How to use attribute value as a discriminator for XML polymorphic type selection?
  • How to Validate in XSD the xml node value against it’s neighbor xml node value