What is the meaning of xs:mixed without elements?

前端 未结 3 1382
盖世英雄少女心
盖世英雄少女心 2021-01-21 12:57

I got the following XSD bit from a customer. It is part of a legacy schema that spans over dozens of files.


  

        
3条回答
  •  萌比男神i
    2021-01-21 13:35

    The two types might be equivalent on the surface, but their extensibility is different. Using a simple content type of xs:string allows refinement of the type by constraining the string for example with a regular expression, while using a mixed complex content type with no elements allows refinement by adding elements to the model.

提交回复
热议问题