XML DOM systemIdプロパティ


DocumentType Object 参考手册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);

出力:

note.dtd

試してみる »

DocumentType Object 参考手册DocumentType オブジェクト その他の拡張