Zoomed Image

AMSX Scripting Language - Command : xmlset

Summary

Write a value into a field node in the XML document

Description

Sets a field value in the current XML document (mdoc). XmlSet uses 1-based row indexing; XmlSet0 uses 0-based. Use "*" to update all rows, a number to update a specific row, or "/" to set at the document element level.

Parameters

ParameterDescription
cmdRow selector: "*" for all rows, "/" for document-element level, or a 1-based row number (0-based for XmlSet0)
Argument 0Field name or XML tag to set
Argument 1Value to write into the node
Argument 2"1" or "True" to only set the value if the node is currently empty

Syntax


XmlSet "Row selector: "*" for all rows, "/" for document-element level, or a 1-based row number (0-based for XmlSet0)", "Field name or XML tag to set", "Value to write into the node", ""1" or "True" to only set the value if the node is currently empty"

Return to the AMSX Command Reference