The lr_xml_replace function queries the XML input string XML for values matching the Query criteria and replaces them either with XmlFragment or XmlFragmentParam as the value of the elements matched by the query. You can replace elements by specifying either its element name or attribute in the XML Query. The resulting string is placed in ResultParam, using the source document encoding.
If there is more than one value to be replaced, then pass the “XmlFragmentParam=” specification. Save the values in a series of parameters with the names: param1..param2…param3…
where Param is the value “XmlFragmentParam=Param“. lr_xml_replace replaces each successive match of the Query with the value of the next parameter in the series.
int lr_xml_replace(
[,
] [, LAST]);
List of specifications
For the following list of required specifications, use the following string format: “Specification=value”
XML: the XML Input String to query
ResultParam: the name of the output parameter containing the XML data after replacing the new value
Query: the XML Query on the input string XML.
List of optional specifications
Choose one of the following:
XmlFragment: the string value to use as replacement of the query match—an element or an attribute. or:
XmlFragmentParam: the name of the parameter containing the string value to use as replacement
For the following list of optional specifications, use the following string format: “Specification=value”
SelectAll: If “yes”, all elements matching the query will be processed. If “no”, only the first match will be processed. Default is “no”.
If there is more than one value to be replaced, then pass the “XmlFragmentParam=” specification. Save the values in a series of parameters with the names: param1..param2…param3…
where Param is the value “XmlFragmentParam=Param“. lr_xml_replace replaces each successive match of the Query with the value of the next parameter in the series.
int lr_xml_replace(
[,
] [, LAST]);
List of specifications
For the following list of required specifications, use the following string format: “Specification=value”
XML: the XML Input String to query
ResultParam: the name of the output parameter containing the XML data after replacing the new value
Query: the XML Query on the input string XML.
List of optional specifications
Choose one of the following:
XmlFragment: the string value to use as replacement of the query match—an element or an attribute. or:
XmlFragmentParam: the name of the parameter containing the string value to use as replacement
For the following list of optional specifications, use the following string format: “Specification=value”
SelectAll: If “yes”, all elements matching the query will be processed. If “no”, only the first match will be processed. Default is “no”.
No comments:
Post a Comment