Google Apps Script
Feedback on this document

Class XmlAttribute

An attribute in an XML element.

Methods

MethodReturn typeBrief description
getName()XmlNameGets the name of this attribute.
getValue()StringGets the value of the XmlAttribute.
setValue(value)voidSets the value of this attribute.
toXmlString()String

Detailed documentation

getName()

Gets the name of this attribute.

Return

XmlName — the name of this attribute


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

NameTypeDescription
valueObject

toXmlString()

Return

String — this node in string form. For Elements and Documents this will be the fully converted node in XML string form. For other minor nodes (like Attributes) this will be in simplified XML fragments like: foo="bar"

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.