Is it possible to define a root element in an XML Document using Schema?

前端 未结 1 1709
栀梦
栀梦 2021-01-04 20:27

Is this possible? I can\'t work out how to do it.

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-04 21:04

    The following should work, I'd also suggest the W3 Schools section on schemas.

    
      
    
      
        
          
          
        
        
      
    
    

    This should be the schema for an XML structure like this:

    
      Hello
      World
      Optional
    
    

    0 讨论(0)
提交回复
热议问题