Object XmlNodeList
The XmlNodeList object represents an ordered list of nodes
Inheritance
Operator
operator[]
Can use subscripts to directly access data
1readonly XmlNode XmlNodeList[];
Member attributes
length
Integer, returns the number of nodes in the node list
1readonly Integer XmlNodeList.length;
Member function
item
Returns the node at the specified index number in the node list
1XmlNode XmlNodeList.item(Integer index);
Call parameters:
- index: Integer, specify the index to be queried
Return result:
- XmlNode, The node with the specified index number
toString
Returns the string representation of the object, generally returns "[Native Object]", the object can be re-implemented according to its own characteristics
1String XmlNodeList.toString();
Return result:
- String, Returns the 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
1Value XmlNodeList.toJSON(String key = "");
Call parameters:
- key: String, unused
Return result:
- Value, Returns a value containing JSON serializable