Save¶
Saves the current node's content to the $XmlRepository.
1 | |
Parameters¶
string xquery optional
Specifies the XQuery expression to save filtered results. If set to null, the current node's outer XML content will be saved.
string targetXPath optional
Specifies the repository target path. If set to null, the root path of the repository is used. The path can be separated by '/' characters.
string collection optional
The name of the repository collection. When omitted, the default repository of the domain is used.
Returns¶
An array of strings, potentially representing the paths where the data was saved.
Remarks¶
Available only in server scripts.
The XQuery runs against the current node's XML, and each result is saved to the repository. Registered namespace prefixes are implicitly declared while performing the XQuery.
Examples¶
Save the current node¶
1 2 | |
Save a child node to a specific path¶
1 | |
Save a transformed result¶
1 2 3 4 5 6 7 | |
Save only the rows that match a condition¶
1 2 3 4 | |