xml.Document

Object Description

Represents an entire XML document. The XML DOM presents a document as a hierarchy of node objects. Use the methods and properties available to the xml.Document object to manipulate the XML document and the nodes in the document tree.

An XML document object is also a node of type DOCUMENT_NODE. In addition to the Document object members, Document objects inherit the members of the Node object. For a complete list of these methods and properties, see Node Object Members.

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/xml Module

Methods and Properties

Document Object Members

Since

2015.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/xml Module Script Samples.

          //Add additional code 
...
var xmlDocument = xml.Parser.fromString({
    text : xmlFileContent
});
...
//Add additional code 

        

Related Topics

General Notices