loadXML

Loads and appends a specified XML document to the current object.

Syntax

Reference_Syntax.loadXML( STRING param1 [, BOOLEAN param2 [, BOOLEAN param3 ] ] )

Parameters

param1

A valid string representing the XML document.

param2 (Optional)

A Boolean value indicating if the root node within the XML document should be ignored.

  • true | 1 (JavaScript) or 1 (FormCalc) (default)

  • Ignores the root node of the XML document, and appends the remaining XML nodes directly to the current XML Form Object Model object.

  • false | 0 (JavaScript) or 0 (FormCalc)

  • Appends the root node of the XML document directly to the current XML Form Object Model object.

param3 (Optional)

A Boolean value indicating if the data from the XML document should overwrite the information for the current XML Form Object Model object.

  • true | 1 (JavaScript) or 1 (FormCalc)

  • Replaces the content of the current XML Form Object Model object with the XML document data.

  • false | 0 (JavaScript) or 0 (FormCalc) (default)

  • Appends the XML document data to the current XML Form Object Model object.

Returns

Empty

Applies to

node class class

Version

XFA 2.1

Examples

JavaScript

xfa.datasets.data.loadXML(xmlData,0,1);

FormCalc

xfa.datasets.data.loadXML(xmlData,0,1)

// Ethnio survey code removed