Google Apps Script
Feedback on this document

Class XmlNode

Deprecated. For new scripts, please prefer the XmlService instead.

Base Xml node type. Specifies all the functionality that is common to all Xml nodes. Nodes can be tagged to provide a mapping between nodes and object for the client. This is purely a convenience mechanism and can be supplanted by the client with an Identity map under their own control.

Methods

MethodReturn typeBrief description
toXmlString()StringReturns this node as an XML string.

Detailed documentation

toXmlString()

Returns this node as an XML string. For an XmlElement or XmlDocument, this will be the fully converted node in XML string form. For minor nodes like XmlAttribute, this will be in simplified XML fragments like foo="bar".

Return

String — this node in string form

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.