Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
 - transform: AppendToAttribute
   xpath: //contains_JobObject[@stageType]/@name
   appendString: _I_AM_STAGE

 - transform: PrependToAttribute
   xpath: //contains_JobObject[@stageType]/@name
   prependString: MY_NAME_IS_

Transforms

Transform

Description

Parameters

AppendToAttribute

Append a string value to an attribute.

...

  1. xpath: Path to the attribute in the XML to modify

  2. appendString: String to append to the current value of the attribute

PrependToAttribute

Prepend a string value to an attribute.

Parameters:

  1. xpath: Path to the attribute in the XML to modify

  2. prependString: String to prepend to the current value of the attribute

SearchAndReplace

Perform a regex search/replace on a text node (i.e. attribute or element with

...

text content). If an element with child elements is provided by the xpath, the

...

child elements will all be removed by this operation.

Parameters:

  1. xpath: Path to the text node in the XML to apply search and replace

  2. searchString: Regex search string

  3. replaceString: Regex replace string

InsertElement

Adds an XML element as a child to a specified parent element.

Parameters:

  1. xpath: Path to the parent node. The provided element will be a child of this node

  2. element: XML element to insert (as a string)

InsertAttribute

Adds an attribute to an XML element. If the attribute already exists it will be

...

overwritten.

Parameters:

  1. xpath: Path to the element to add attribute to

  2. attributeName: name of the attribute to add

  3. attributeValue: value of the attribute to add

RemoveElement

Removes an XML element from the document.

...

  1. xpath: Path to the element to remove.

RemoveAttribute

Removes an attribute from an existing element.

Parameters:

  • xpath: Path to the element the attribute is in.

  • attributeName: Name of the attribute to remove.

Recipes

Change prefetch memory

...