XML DocumentType 節點的表示法。
方法
| 方法 | 傳回類型 | 簡短說明 |
|---|---|---|
detach() | Content|null | 將節點從父項 Element 節點中分離。 |
get | String | 取得 Doc 宣告中指定的根 Element 節點名稱。 |
get | String | 取得 Document 節點的內部子集資料。 |
get | Element|null | 取得節點的父項 Element 節點。 |
get | String | 取得 Document 節點的外部子集資料公開 ID。 |
get | String | 取得 Document 節點的外部子集資料系統 ID。 |
get | String | 取得節點直接或間接子項的所有節點文字值,順序與文件中的顯示順序相同。 |
set | Doc | 將根 Element 節點的名稱設為在 Doc 宣告中指定的名稱。 |
set | Doc | 設定 Document 節點的內部子集資料。 |
set | Doc | 為 Document 節點設定外部子集資料的公開 ID。 |
set | Doc | 為 Document 節點設定外部子集資料的系統 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 節點,用於鏈結。