Skip to content

Commit

Permalink
Merge pull request #2126 from arunans23/master
Browse files Browse the repository at this point in the history
Serialize OMNode after replace dynamic Inline expressions
  • Loading branch information
arunans23 authored Jan 3, 2024
2 parents ff547af + 8567e67 commit 666897b
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 666897b

Please sign in to comment.