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.
我正在为仅修改属性的工具构建 DTD。我不在乎它是否符合 DTD。我希望任何元素都能够成为任何其他元素的子元素。只是为了防止解析器修改数据集。目前,我有任何实体包含完整的元素列表并允许((零个或多个)每个)零次或多次。
我认为您可能可以将所有元素都包含在根目录中,但是很糟糕。
讨厌的例子...
<!ELEMENT root - - (all|child|elements)* +(all|child|elements)>