Deprecated. For new scripts, please prefer the
XmlService
instead.
An attribute in an XML element.
Methods
Method | Return type | Brief description |
---|---|---|
getName() |
| Gets the name of this attribute. |
getValue() | String | Gets the value of the XmlAttribute. |
setValue(value) | void | Sets the value of this attribute. |
toXmlString() | String | Returns this node as an XML string. |
Detailed documentation
getValue()
Gets the value of the XmlAttribute.
Return
String
— the value of this attribute. The value is always stored as a
String
even if it is provided as some other type.
setValue(value)
Sets the value of this attribute. The value will be set to the equivalent
of String.valueOf(value)
.
Parameters
Name | Type | Description |
---|---|---|
value | Object | the value of this attribute |
toXmlString()
Returns this node as an XML string. For an
or XmlElement
, this will
be the fully converted node in XML string form. For minor nodes like XmlDocument
, this
will be in simplified XML fragments like XmlAttributefoo="bar"
.
Return
String
— this node in string form