English 中文(简体)
可否约束XML要素的内容?
原标题:Can the content of an XML element be bounded?
  • 时间:2009-09-26 07:18:46
  •  标签:

我正试图撰写一份DTD文件,我想界定一个PBOOKTYPE的内容,这个要素可以是:ONE、TWO或THREE。 我是否可以确保这些价值中只有一种能够输入要素?

Note: 1. I know how to do this in an attribute, but not sure how to accomplish with elements. 2. I want a way of doing this INSIDE the DTD, not using a programming language.

问题回答




相关问题
热门标签