Element that can only have one of two text values?

后端 未结 2 441
孤独总比滥情好
孤独总比滥情好 2020-12-02 01:59

I\'m constructing a DTD which has a fuel_system element.

I want to restrict the text between tag. It must be only

2条回答
  •  旧时难觅i
    2020-12-02 02:25

    Does it have to be a DTD? Is XML Schema an option?

    Using XML Schema you can restrict element text to an enumerated list of values:

    
      
        
          
          
        
      
    
    

提交回复
热议问题