Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

Parser.toString(options)

{Parser}.toString({document: {xml.Document}})

N/xml Module
Parser.toString()
Method Description: Converts (serializes) an xml.Document object into a string. This API is useful, for example, if you want to serialize and store an xml.Document in a custom field.
Returns: string
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/xml Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Parser.toString(options)

Example:

// Code Example 1
//Add additional code
//...
var xmlStringContent = xml.Parser.toString({
document : xmlDocument
});
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4344924636.html