XML DOM systemId 屬性
DocumentType Object
定義和用法
systemId 屬性返回外部 DTD 的系統(tǒng)標(biāo)識(shí)符。
語法
documentObject.doctype.systemId
實(shí)例
下面的代碼片段使用 loadXMLDoc() 把 "books.xml" 載入 xmlDoc 中,并顯示外部 DTD 的系統(tǒng) id:
實(shí)例
xmlDoc=loadXMLDoc("note_external_dtd.xml");
document.write(xmlDoc.doctype.systemId);
輸出:
note.dtd
嘗試一下 ?
DocumentType Object
更多建議: