Object built-in object

Object XmlAttr

The XmlAttr object represents the attributes of the XmlElement object

Inheritance

Member attributes

localName

String, the local name of the query element. If the selected node has no namespace, this attribute is equivalent to nodeName

1
readonly String XmlAttr.localName;

value

String, the value of the property

1
String XmlAttr.value;

name

String, the name of the property

1
readonly String XmlAttr.name;

namespaceURI

String, the URI of the namespace of the query element. If the selected node has no namespace, this attribute returns NULL

1
readonly String XmlAttr.namespaceURI;

prefix

String, query and set the namespace prefix of the element. If the selected node has no namespace, this attribute returns NULL

1
String XmlAttr.prefix;

nodeName

String, the name of the property, for compatibility purposes

1
readonly String XmlAttr.nodeName;

nodeValue

String, the value of the property, for compatibility purposes

1
String XmlAttr.nodeValue;

Member function

toString

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

1
String XmlAttr.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

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

Call parameters:

  • key : String, unused

Return result:

  • Value , returns a value containing JSON serializable