addToDocument

splunkjs.ModularInputs.Argument.addToDocument

Adds an Argument object the passed in elementtree object.

Adds an subelement to the parent element, typically , and sets up its subelements with their respective text.

Syntax

Argument.prototype.addToDocument = function (parent)

Parameters

Name Type Description
parent Object

An elementtree element object to be the parent of a new subelement

Return

Object.

An elementtree element object representing this argument.