Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于这个 xml 行
<Employment type ="Full">...</Employment>
我写了这个 dtd 行
<!ATTLIST Employment type (Full|Part) "Full">
现在,如果我有多个这样的属性怎么办
<Institution from ="2011" to ="2014">...</Institution>
我如何表示它的 dtd?
感谢您的帮助
ATTLIST您可以在一个元素中拥有多个属性...
ATTLIST
<!ATTLIST Institution to CDATA #REQUIRED from CDATA #REQUIRED>
只需<!ATTLIST>为第二个属性添加另一个。
<!ATTLIST>
所以它可能是这样的
<!ATTLIST Institution from CDATA #REQUIRED> <!ATTLIST Institution to CDATA #REQUIRED>