Skip to content

__escapeXml

JMeter __escapeXml function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values.

Difficulty
intermediate
Guide type
reference
Estimated read time
1 min read
Last verified version
Verified JMeter 5.6

Also documented in context in the full Functions and Variables reference.

Function which escapes the characters in a String using XML 1.0 entities.

For example,

Terminal window
\${__escapeXml("bread" & 'butter')}

returns: "bread" & 'butter'.

Uses StringEscapeUtils#escapeXml10(String) from Commons Lang.

NameRequiredDescription
String to escapeYesThe string to be escaped.
On this page