XML DOM systemId attribute
Definition and usage
The systemId attribute can return the system identifier of the external DTD.
Syntax:
documentObject.doctype.systemId
Instance
In all examples, we will use the XML file note_external_dtd.xml, and the JavaScript function loadXMLDoc().
The following code snippet can display the system id associated with the external DTD of the XML document:
xmlDoc=loadXMLDoc("note_external_dtd.xml");
document.write(xmlDoc.doctype.systemId
);
Output:
note.dtd