Recursion in an XML schema?

后端 未结 3 1904
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 02:28

I need to create an XML schema that validates a tree structure of an XML document. I don\'t know exactly the occurrences or depth level of the tree.

XML example:

3条回答
  •  误落风尘
    2020-11-29 03:27

    if you need a recursive type declaration, here is an example that might help:

    
      
    
          
        
          
        
      
    
    
    

    As you can see, this defines a recursive schema with only one node named "node" which can be as deep as desired.

提交回复
热议问题