XML DOM xmlVersion အချက်အလက်

Document အားကစား လက်တွေ

အသုံးပြုခြင်း နှင့် အဆိုပါ

xmlVersion အချက်အလက် ကို ရုပ်ရှင်မှူး ကို အစားထိုးသို့မဟုတ် တင်ပြနိုင်သည်။

ပြောင်းလဲခြင်း

documentObject.xmlVersion

အမှတ်အသား

အားလုံး အမှတ်အသားများ တွင် သင်သည် XML အချက်အလက်များ ကို အသုံးပြုလိမ့်မည် books.xmlနှင့် JavaScript အားကစား loadXMLDoc()

အောက်ပါ ကြော်ငြာ အချက်အလက်များ သည် XML အောင်ပွားစေရန် အက္ခရာတို့၊ standalone အခြေခံ နှင့် အခြေခံ XML ကွဲပြားစေရန် ပြသခြင်းဖြစ်ပါသည်:

xmlDoc=loadXMLDoc("books.xml");
document.write("XML encoding: " + xmlDoc.xmlEncoding);
document.write("<br />");
document.write("XML standalone: " + xmlDoc.xmlStandalone);
document.write("<br />");
document.write("XML version: " + xmlDoc.xmlVersion);
document.write("<br />");
document.write("Encoding when parsing: " + xmlDoc.inputEncoding);

ထုတ်လုပ်ခြင်း:

XML အက္ခရာ: ISO-8859-1
XML standalone: false
XML ကွဲပြားစေရန်: 1.0
ပြန်လည်တုပ်ထိန်းခြင်း အက္ခရာ: ISO-8859-1

Document အားကစား လက်တွေ