Object built-in object

Object XmlNamedNodeMap

XmlNamedNodeMap object represents an unordered list of attributes

Inheritance

Subscript operation

Direct access to data using subscripts

1
readonly XmlAttr XmlNamedNodeMap[];

Member attributes

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 query

Returns the result:

  • XmlAttr , the attribute specifying the index number

getNamedItem

Querying a Property with a Specified Name

1
XmlAttr XmlNamedNodeMap.getNamedItem(String name);

Call parameters:

  • name : String, specify the name to query

Returns the result:

  • XmlAttr , return the query attribute

toString

Returns a string representation of the object, usually "[Native Object]". Objects can be reimplemented according to their own characteristics

1
String XmlNamedNodeMap.toString();

Returns the result:

  • String , returns a string representation of the object

toJSON

Returns a JSON representation of the object, typically returning a collection of readable properties defined by the object

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

Call parameters:

  • key : String, unused

Returns the result:

  • Value , returns a value containing a JSON serializable