gpt4 book ai didi

xml - 当元素具有多于 1 个属性时的 DTD

转载 作者:行者123 更新时间:2023-12-02 15:35:15 25 4
gpt4 key购买 nike

对于这个xml行

<Employment type ="Full">...</Employment>

我写了这一行dtd

<!ATTLIST Employment type (Full|Part) "Full">

现在,如果我有多个这样的属性怎么办

<Institution from ="2011" to ="2014">...</Institution>

我如何表示它的 dtd?

感谢帮助

最佳答案

再加一个<!ATTLIST>对于第二个属性。

所以它可能是这样的

<!ATTLIST Institution from CDATA #REQUIRED>
<!ATTLIST Institution to CDATA #REQUIRED>

关于xml - 当元素具有多于 1 个属性时的 DTD,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18815619/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com