XML DOM systemId Property
Definition and Usage
systemId
The attribute returns the system identifier of the external DTD.
Syntax
documentObject.doctype.systemId
Example
The following code loads "note_external_dtd.xml" into xmlDoc and displays the system id of the external DTD:
var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { myFunction(this); } }; xhttp.open("GET", "note_external_dtd.xml", true); xhttp.send(); function myFunction(xml) { var xmlDoc = xml.responseXML; document.getElementById("demo").innerHTML = xmlDoc.doctype.systemId; }