XML DOM systemId 属性

定义和用法
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
