Skip to content

Commit

Permalink
Serialize OMNode after replace dynamic Inline expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
arunans23 committed Jan 3, 2024
1 parent ff547af commit 8567e67
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,10 @@ private boolean setDynamicValuesInNode(MessageContext messageContext, String inl
try {
// After the expressions in the inline text is replaced with the value, the string must be parsed
// again to identify whether it has changed to a XML
source.setInlineOMNode(AXIOMUtil.stringToOM(inlineString));
OMNode inlineOMNode = AXIOMUtil.stringToOM(inlineString);
// serialize inlineOMNode
inlineOMNode.buildWithAttachments();
source.setInlineOMNode(inlineOMNode);
isInlineTextXML = true;
} catch (XMLStreamException | OMException e) {
// The string is considered as a text / JSON
Expand Down

0 comments on commit 8567e67

Please sign in to comment.