How to create a generic XSD type

后端 未结 2 1393
抹茶落季
抹茶落季 2021-01-15 00:58

I have a java application where i can map a XSD type to another with same type. Now i have requirement to have one anyType xsd to which i can map any type. Like as we have O

2条回答
  •  情书的邮戳
    2021-01-15 01:29

    Yes, it's possible. The type is xsd:anyType. Here's an example:

    
    

    (Taken from the primer)

    Here's a more complex example:

    
      
        
          
          
        
      
    
    

    (From the primer as well - it's worth looking at at it)

提交回复
热议问题