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.
In a dtd, can an element be defined as
<!ELEMENT name (ANY|EMPTY)>
meaning that an name can either be like <name/> or it can contain any elements that does break xml rules?
<name/>
不,但如果你使用 type ANY,它仍然可以是空的。
ANY
例子:
<!DOCTYPE name [ <!ELEMENT name ANY> ]> <name/>
-
<!DOCTYPE name [ <!ELEMENT name ANY> <!ELEMENT foo (#PCDATA)> ]> <name> <foo/> </name>