Loading
Salesforce에서 이메일을 보내기 위해서는 도메인 인증이 필요합니다.더 많이 읽기

Escape All the XML Special Characters in Dataweave

게시 일자: Jul 25, 2025
과업

GOAL

This article will help in escaping all the special characters in XML.
Below is the list of all the escape characters that we have in XML:

"   "
'   '
<   &lt;
>   &gt;
&   &amp;
 
단계
Use the "escapeGT=true" header directive to achieve this goal.

Input payload
{
"Description": " < > & ' \""
}

Dataweave script
%dw 2.0
output application/xml escapeGT=true
---
payload

Output payload
<?xml version='1.0' encoding='UTF-8'?>
<Description> &lt; &gt; &amp; &apos; &quot;</Description>
 

 

Knowledge 기사 번호

001116766

 
로드 중
Salesforce Help | Article