XML DOM - NodeList Object
NodeList object သည် မှာယူထားသော node များစာရင်းကို ကိုယ်စားပြုသည်။
NodeList အရာဝတ္ထု
node list အတွင်းရှိ node များကို ၎င်းတို့၏ အညွှန်းနံပါတ် (0 မှစတင်သည်) မှတဆင့် ဝင်ရောက်ကြည့်ရှုနိုင်ပါသည်။
node list သည် သူ့ကိုယ်သူ အပ်ဒိတ်ဖြစ်စေသည်။ ဒြပ်စင်တစ်ခုကို ဖျက်လိုက်လျှင် သို့မဟုတ် ပေါင်းထည့်ပါက၊ node စာရင်း သို့မဟုတ် XML စာရွက်စာတမ်းတွင်၊ စာရင်းကို အလိုအလျောက် အပ်ဒိတ်လုပ်မည်ဖြစ်သည်။
မှတ်ချက်- node list တစ်ခုတွင်၊ node များကို XML document တွင် သတ်မှတ်ထားသည့် အစဉ်အတိုင်း ပြန်ပေးပါသည်။
NodeList Object Properties
Property | Description |
---|---|
length | Returns the number of nodes in a node list |
NodeList Object Methods
Method | Description |
---|---|
item() | Returns the node at the specified index in a node list |