Zoomed Image

AMSX Scripting Language - Command : XmlToTempTableAppend

Summary

Append the XML buffer to a temporary table, adding rows without recreating the table

Description

Reads the current XML document (mdoc) and appends each record as a new row in the specified temporary table. Use this to accumulate rows across multiple XML loads into a single table. The table name must include $tempdb$ or the table is created in the main database. The first record must contain all fields. Field names are taken from XML element tags.

Parameters

ParameterDescription
cmdTableName (the target temp table, must include $tempdb$)
Argument 0Flag to untag fields (1 to strip tag encoding from field names)
Argument 1Flag to ignore v6 legacy flag fields A and B (1 to skip them)
Argument 2Optional comma-separated field list; leave blank to use all fields

Syntax


XmlToTempTableAppend "TableName (the target temp table, must include $tempdb$)", "Flag to untag fields (1 to strip tag encoding from field names)", "Flag to ignore v6 legacy flag fields A and B (1 to skip them)", "Optional comma-separated field list; leave blank to use all fields"

Return to the AMSX Command Reference