Replaces all occurrences of a specific XPath with a specified value. Also supports removing of elements according to an XPath.


Version History

2.0.0.2 Fixed issue where multiple matches of an XPath weren't handled correctly by all actions
2.0.0.1 Initial Release


Properties

XmlDocument

Type: Xml Input
The XmlDocument to be acted upon.

XPath

Type: String Input
An XPath that identifies the XML elements to be replaced

Namespaces

Type: Multiline Text Input
A specification of namespaces in the form prefix:namespace (one per line). The prefixes defined here can then be referenced in the XPath property.

Replace

Type: List Input
InnerText - Use when ReplaceWith contains an unescaped XML element value
OuterXml - Use when ReplaceWith contains an XML document that should replaced the matched elements
InnerXml - Use when ReplaceWith contains an XML document that should replace the child elements within the matched elements
Insert - Use when ReplaceWith should be inserted into the matched elements
Remove - Use to remove the matched elements from the document (ReplaceWith should be left empty)
The action to perform against the matched XML elements.

ReplaceWith

Type: Multiline Text Input
The value to replace, where applicable. See the Replace property.

Output

Type: Xml Output
The resultant XML document after performing the replacement or removal action.

Remarks

Use this Node to either remove certain paths from a document or replace the element content (or the elements themselves) with a static value or document.

See Also

XPath Replace

Did this answer your question?