THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

XML DOM systemId Property


DocumentType Object Reference DocumentType Object

Example

The following code fragment loads "note_external_dtd.xml" into xmlDoc and displays the system id for the external DTD:

var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
��� if (xhttp.readyState == 4 && xhttp.status == 200) {
������� myFunction(xhttp);
��� }
};
xhttp.open("GET", "note_external_dtd.xml", true);
xhttp.send();

function myFunction(xml) {
    var xmlDoc = xml.responseXML;
    document.getElementById("demo").innerHTML =
    xmlDoc.doctype.systemId;
}

The output of the code above will be:

note.dtd
Try it yourself »

Definition and Usage

The systemId property returns the system identifier of the external DTD.

Syntax

documentObject.doctype.systemId

DocumentType Object Reference DocumentType Object