xml - 有没有办法表明一个节点在 XML 文件中已被弃用?
问题描述
我们正在尝试将我们生成并由外部消费者使用的 XML 提要形式化。在 XML 文件中或在其 DTD 中是否有语法来指示特定节点已被弃用并将在未来被删除?
解决方案
(1) 您可以为此使用 XML 注释<!-- Document here whatever needed -->
(2) 最好使用 XSD 而不是 DTD。XSD 也有文档专用标签。请看下文。
<xsd:annotation>
<xsd:documentation>Document here whatever needed</xsd:documentation>
</xsd:annotation>
推荐阅读
- tableau-api - 如何创建显示所有记录的所有列的“只显示所有数据”Tableau 报表
- pandas - 在 DataFrame 中对 n 行进行求和
- python - 获取列表列表并将元素从另一个列表“分配”到子列表的 Pythonic 方式是什么?
- python - 如何在行级别上比较两个海量 Spark 数据帧并打印差异
- python - TypeError:“浮动”对象不支持项目分配
- css - 如何删除一个css类?
- react-native - 这个错误是什么以及在 React Native App 中使用 Expo.TypeError 有什么问题
- marshalling - BeanIO 中 int 字段的默认填充是什么?
- java - JApplet Restart 添加重复的组件
- sql - 在 SQL Server 中看不到数据库图表选项