Declaring an item with ANY name in DTD

Is it possible to declare an element in my DTD that can have ANY name? So far I have learned that ANY can only be used for a data type, for example:

<!ELEMENT element-name ANY>

Any help would be greatly appreciated.

- Ali

+3
source share
2 answers

No, the ANY keyword applies only to the item category. In any case, will semantics be ANY as a name? Whatever you hope, DTD does not have this.

+4
source

Yes, but not for the reason that I think you want.

See 3.2. XML Type Item Element Declarations, Manufactures 45 and 46, at

http://www.xml.com/axml/target.html#elemdecls

ANY - XML , , , XML.

"", , ANY.

+1

Source: https://habr.com/ru/post/1707545/


All Articles