XML DocumentType
节点的表示法。
方法
方法 | 返回类型 | 简介 |
---|---|---|
detach() | Content | 将节点与其父级 Element 节点分离。 |
getElementName() | String | 获取 DocType 声明中指定的根 Element 节点的名称。 |
getInternalSubset() | String | 获取 DocumentType 节点的内部子集数据。 |
getParentElement() | Element | 获取节点的父级 Element 节点。 |
getPublicId() | String | 获取 DocumentType 节点的外部子集数据的公共 ID。 |
getSystemId() | String | 获取 DocumentType 节点的外部子集数据的系统 ID。 |
getValue() | String | 获取节点的直接或间接子节点的文本值(按照节点在文档中的顺序)。 |
setElementName(name) | DocType | 设置要在 DocType 声明中指定的根 Element 节点的名称。 |
setInternalSubset(data) | DocType | 设置 DocumentType 节点的内部子集数据。 |
setPublicId(id) | DocType | 设置 DocumentType 节点的外部子集数据的公共 ID。 |
setSystemId(id) | DocType | 设置 DocumentType 节点的外部子集数据的系统 ID。 |
详细文档
getElementName()
getInternalSubset()
获取 DocumentType
节点的内部子集数据。
返回
String
- 内部子集数据
getPublicId()
获取 DocumentType
节点的外部子集数据的公共 ID。
返回
String
- 外部子集数据的公共 ID
getSystemId()
获取 DocumentType
节点的外部子集数据的系统 ID。
返回
String
- 外部子集数据的系统 ID
getValue()
获取节点的直接或间接子节点的文本值(按照节点在文档中的顺序)。
返回
String
- 节点的直接或间接子节点的文本值
setElementName(name)
setInternalSubset(data)
setPublicId(id)
设置 DocumentType
节点的外部子集数据的公共 ID。
参数
名称 | 类型 | 说明 |
---|---|---|
id | String | 要设置的外部子集数据的公共 ID |
返回
DocType
- DocumentType
节点,用于串联
setSystemId(id)
设置 DocumentType
节点的外部子集数据的系统 ID。
参数
名称 | 类型 | 说明 |
---|---|---|
id | String | 要设置的外部子集数据的系统 ID |
返回
DocType
- DocumentType
节点,用于串联