XML, DTD: how to make the order not important

后端 未结 5 431
难免孤独
难免孤独 2020-12-06 05:27

I started off using an XML file and a parser as a convenient way to store my data

I want to use DTD to check the structure of the xml files when they arrive.

5条回答
  •  盖世英雄少女心
    2020-12-06 05:55

    You can use ANY keyword if you don't bother too much about validity:

    
    

    I have faced a similar problem here, this two cases may appear:

    
      
      
      
      
    
    
    
      
      
      
      
    
    

    The only solution I found was this:

    
    

    Maybe there are a better solution, but it works fine for my particular problem.

提交回复
热议问题