Object built-in object

Object XmlNodeList

The XmlNodeList object represents an ordered list of nodes

Inheritance

Subscript operation

Direct access to data using subscripts

1
readonly XmlNode XmlNodeList[];

Member attribute

length

Integer, returns the number of nodes in the node list

1
readonly Integer XmlNodeList.length;

Member function

item

Returns the node at the specified index number in the node list

1
XmlNode XmlNodeList.item(Integer index);

Call parameters:

  • index : Integer, specify the index to query

Return result:

  • XmlNode , the node with the specified index

toString

Returns the string representation of the object, generally returns "[Native Object]", the object can be reimplemented according to its own characteristics

1
String XmlNodeList.toString();

Return result:

  • String , returns a string representation of the object

toJSON

Returns the JSON format representation of the object, generally returns a collection of readable attributes defined by the object

1
Value XmlNodeList.toJSON(String key = "");

Call parameters:

  • key : String, unused

Return result:

  • Value , returns a value containing JSON serializable