![]() |
|
|
+ Search |
![]()
|
Apr 16th, 2005 00:04
Martin Honnen,
The method length takes no argument and returns the number of XML
objects this XMLList contains.
Here are some examples:
var godList = <>
<god>Kibo</god>
<god>Xibo</god>
</>;
alert(godList.length()); // shows 2
for (var i = 0; i < godList.length(); i++) {
alert(godList[i].toXMLString());
}
/* shows
'<god>Kibo</god>'
'<god>Xibo</god>'
*/