XML DOM systemIdプロパティ
DocumentType オブジェクト
定義と用法
systemId プロパティは、外部 DTD のシステム識別子を返します。
構文
documentObject.doctype.systemId
例
以下のコードスニペットは、loadXMLDoc()「note_external_dtd.xml」を xmlDoc に読み込み、外部 DTD のシステム ID を表示します:
例
xmlDoc=loadXMLDoc("note_external_dtd.xml");
document.write(xmlDoc.doctype.systemId);
document.write(xmlDoc.doctype.systemId);
出力:
note.dtd
試してみる »
DocumentType オブジェクト その他の拡張