Merge XML Files Action

Description

Merges two XML files together into one XML file. XPaths can be provided to customize both insertion points into the host XML file as well as node offsets in the file being merged from.

If user provides the Xpath expression for File 2 then that XML fragment from File 2 is appended to File 1.

Declaration

<AMXMLMERGEFILES FILEB="text" XPATH1="text" XPATH2="text"/>

Example

<AMXMLMERGEFILES FILEB="C:\Automated Workflow\Append.xml" />

General Tab Parameters

File 2: Specifies the file that will merge into the current XML document.

Text, Required
MARKUP: FILEB="C:\Automated Workflow\Append.XML"

Xpath expression for XML Document (Optional): Specifies the Xpath expression identifying the insertion point of host XML file.

Text, Optional
MARKUP: XPATH1="/Root1"

Xpath Expression for File2 (Optional): Specifies the Xpath expression identifying the offset node for second file.

Text, Optional
MARKUP: XPATH2="/Root2"

Session name: Specifies the session name to identify the in-memory XML document to use in subsequent XML steps. This allows several in-memory XML documents to be active simultaneously.

Text, Optional - Default "XMLSession1"
MARKUP: SESSIONNAME="FirstXMLSession"

File2 Namespace Parameters

To insert namespaces into new node

  • Provide a prefix in left bottom text box and a namespace URI in the right bottom text box, then click Add. The Prefix and Namespace URI appear in the list.

Prefix: Specifies the prefix of the namespace.

Text, Optional
MARKUP: Name="Prefix"

Namespace URI: Specifies the namespace URI.

Text, Optional
MARKUP: Value="NamspaceURI"

Move Up: Moves a selected namespace up the list.

Move Down: Moves a selected namespace move it down the list.

Modify:  Allows selected attribute names and values to be edited.

Remove: Removes a selected namespace.

See Also

Output XML File Action