Object built-in object

ObjectXmlNamedNodeMap

An XmlNamedNodeMap object represents an unordered list of properties

inheritance relationship

Operator

operator[]

Data can be accessed directly using subscripts

1
readonly XmlAttr XmlNamedNodeMap[];

member properties

length

Integer, returns the number of attributes in the attribute list

1
readonly Integer XmlNamedNodeMap.length;

member function

item

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

1
XmlAttr XmlNamedNodeMap.item(Integer index);

Call parameters:

  • index: Integer, specify the index to be queried

Return results:

  • XmlAttr, attribute specifying the index number

getNamedItem

Query the attribute with the specified name

1
XmlAttr XmlNamedNodeMap.getNamedItem(String name);

Call parameters:

  • name: String, specify the name to be queried

Return results:

  • XmlAttr, returns the queried attributes

toString

Returns the string representation of the object. Generally, "[Native Object]" is returned. The object can be re-implemented according to its own characteristics.

1
String XmlNamedNodeMap.toString();

Return results:

  • String, returns the string representation of the object

toJSON

Returns a JSON format representation of the object, generally returning a collection of readable properties defined by the object.

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

Call parameters:

  • key: String, not used

Return results:

  • Value, returns a value containing JSON serializable