Object built-in object

Object XmlAttr

XmlAttr object representationXmlElementobject properties

inheritance relationship

#lineWidth: 1.5 #font: Helvetica,sans-Serif #fontSize: 10 #leading: 1.6 #.this: fill=lightgray #.class: fill=white [<class>object|toString();toJSON()] [<this>XmlAttr|localName;value;name;namespaceURI;prefix;nodeName;nodeValue] [object] <:- [XmlAttr] object toString() toJSON() XmlAttr localName value name namespaceURI prefix nodeName nodeValue

Member properties

localName

String, the local name of the query element. If the selected node has no namespace, this property 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, URI of the namespace of the query element. If the selected node has no namespace, this property returns NULL

1
readonly String XmlAttr.namespaceURI;

prefix

String, the namespace prefix for query and set elements. If the selected node has no namespace, this property 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 reimplemented 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 the set of readable properties defined by the object

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

Call parameters:

  • key: String, unused

Return result:

  • Value, returns a value containing JSON serializable