468,505 Members | 1,845 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

DTD - Element Hierarchy?

233 100+
Is it possible to declare an element hierarchy in a DTD? For instance, if two elements hold the same information, but one is supposed to supersede the other, can that be defined in a DTD? If not, where could that hierarchy be defined?
Aug 29 '12 #1
4 1515
rski
700 Expert 512MB
Please post an example.
Sep 5 '12 #2
mcfly1204
233 100+
I do not see how an example would help answer this question. Is there a way to define a hierarchy of elements where if one element is populated, that information supersedes the information of another element.
Sep 5 '12 #3
Dormilich
8,651 Expert Mod 8TB
a DTD is supposed to define the order of elements in the SGML document and their (static) properties. though you can define default values, dynamic behaviour is not the realm of DTD.
Sep 6 '12 #4
mcfly1204
233 100+
That is how I understood the purpose of DTDs as well. Thanks for the confirmation.
Sep 6 '12 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by John J. Lee | last post: by
10 posts views Thread by KemperR | last post: by
1 post views Thread by Gilles Lenfant | last post: by
2 posts views Thread by Rob Nicholson | last post: by
1 post views Thread by travis_brooks | last post: by
2 posts views Thread by Do | last post: by
4 posts views Thread by jaime.dyson | last post: by
3 posts views Thread by gieforce | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.