Merge XML Files

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 from the file being merged. If the user provides the Xpath expression for File 2 then that XML fragment from File 2 is appended to File 1.

AWE's XML actions require a basic understanding of XML and related terms, such as XPath, DTD and XSLT.

Declaration

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

Example

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

See Also: Create XML Node, Delete XML Node, Edit XML Node, End XML Session, Evaluate Xpath Expression, Read XML Node, Sign XML Document, Start XML Session, Transform XML, Validate XML File, Verify XML Document, XML Node to Dataset

General Tab

Property

Type

Required

Default

Markup

Description

File 2

Text

Yes

(Empty)

FILEB="C:\Automate\Append.XML"

The file in which to merge into the current XML document.

Xpath Expression for XML Document (Optional)

Text

No

(Empty)

XPATH1="/Root1"

The file in which you want to store the fragment as a first child of root node.

Xpath Expression for File2 (Optional)

Text

Yes

(Empty)

XPATH2="/Root2"

The Xpath expression identifying the offset node for second file.

Session Name

Text

No

(Empty)

SESSIONNAME="FirstXMLSession"

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.