XML DOM systemId ပိုင်ဆိုင်မှု
❮ DocumentType Object
ဥပမာ
အောက်ဖော်ပြပါ ကုဒ်အပိုင်းအစသည် " note_external_dtd.xml " ကို xmlDoc သို့ တင်ပြီး ပြင်ပ DTD အတွက် စနစ် ID ကို ပြသသည်-
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;
}
အထက်ဖော်ပြပါ ကုဒ်၏ အထွက်သည်-
note.dtd
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
systemId ပိုင်ဆိုင်မှုသည် ပြင်ပ DTD ၏ စနစ်ခွဲခြားသတ်မှတ်မှုကို ပြန်ပေးသည်။
အထားအသို
documentObject.doctype.systemId
❮ DocumentType Object