XFormat
Replaces matching sections of Expression with the text specified in the Custom Properties. Also applies escaping if required.
Properties
Expression
Type: Multiline Text Input
Expression containing text to be formatted.
XmlDocument
Type: Xml Input
Xml Document that will be used to replace placeholders in the Expression
Namespaces
Type: Multiline Text Input
The Namespace contained within the XML document required when the desired node is utilizing a namespace
Escaping
Type: List Input
None - Indicates that the value(s) in the custom properties must not be escaped.
SQL - Indicates that the value(s) in the custom properties must be escaped for SQL.
XML - Indicates that the value(s) in the custom properties must be escaped for XML.
JSON - Indicates that the value(s) in the custom properties must be escaped for JSON.
Uri - Indicates that the value(s) in the custom properties must be escaped for a Uri.
Result
Type: Multiline Text Output
The resultant expression.
Remarks
XFormat replaces all the instances of the placeholders in Expression. Support is provided for different types of escaping.
The strings that must be replaced must be in curly braces, and then custom properties must be added to the node by right clicking on the node and select custom properties. The names of the custom properties must match the placeholders in the expression, and is case sensitive. The xpath to the node which inner text must be replaced must be specified in the value of the custom property.
Examples
See Sample Workflow for an example.