模块 java.xml

接口 DTD

所有父级接口:
XMLEvent , XMLStreamConstants

public interface DTD extends XMLEvent
这是处理 DTD 事件的顶级接口
自从:
1.6
  • 方法详情

    • getDocumentTypeDeclaration

      String  getDocumentTypeDeclaration()
      将整个文档类型声明作为字符串返回,包括内部 DTD 子集。如果没有内部子集,这可能为 null。如果它不为空,则它必须返回与 XML 1.0 规范中的 doctypedecl 生产相匹配的整个文档类型声明
      返回:
      文档类型声明
    • getProcessedDTD

      Object  getProcessedDTD()
      返回 DTD 的实现定义表示。如果没有可用的表示,此方法可能返回 null。
      返回:
      DTD 的表示
    • getNotations

      List <NotationDeclaration > getNotations()
      返回包含 DTD 中声明的符号的列表。此list必须包含 NotationDeclaration 事件。
      返回:
      NotationDeclaration 事件的无序列表
      参见:
    • getEntities

      List <EntityDeclaration > getEntities()
      返回包含在 DTD 中声明的外部和内部一般实体的列表。此list必须包含 EntityDeclaration 事件。
      返回:
      EntityDeclaration 事件的无序列表
      参见: