XML.InsertXML

XML.InsertXML ( 

string XMLPath,

string Text,

number InsertionMode )

Description

Inserts raw XML code into a specific location in the currently loaded document.

Note: For more information on the XML actions, see the XML Actions Concepts topic.

Parameters

XMLPath

(string) The path to the element where you want to insert the XML text. You can insert the XML before this element, insert it after this element, or replace the element (and all its children) with the new XML text.

Text

(string) The XML text that you want to insert.

InsertionMode

(number) The insertion mode to use:

CONSTANT

VALUE

DESCRIPTION

XML.INSERT_BEFORE

0

Insert the new XML text before the specified element.

XML.INSERT_AFTER

1

Insert the new XML text after the specified element.

XML.REPLACE

2

Replace the specified element's XML text with the new XML text.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions