Change XML CharData text
Recipe ID
OpenRewrite.Xml.Recipes.ChangeXmlCharDataArtifactOpenRewrite.Recipes.CSharp.CoreReplaces occurrences of OldText with NewText in XML CharData nodes.
Single recipeProprietary
Usage
You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe OpenRewrite.Xml.Recipes.ChangeXmlCharData --recipe-option "OldText=<OldText>" --recipe-option "NewText=<NewText>"If the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.CoreOptions
| Name | Type | Description |
|---|---|---|
OldTextrequired | String | The text to search for |
NewTextrequired | String | The replacement text |