Removing xml using Custom Pipeline component RRS feed

  • Question

  • I am using below method to replace special charecter coming in as xml.
    If there are any special charecters like  I need to replace 

    How can I update below logic. Please advise


    • Edited by Dan2890 Tuesday, November 19, 2019 9:35 PM a
    Monday, November 18, 2019 9:41 PM

All replies

  • Have two strings, one that contains the strings to be replaced, the other what to replace them with, both with a delimiter that you could have as your third configuration in your pipeline component.

    Use the split function to split both strings, and iterate through them

    Tuesday, November 19, 2019 1:43 AM
  • That is a hard one and probably not something you should be doing anyway.

    If the sender is not escaping those characters in a XML payload, it is NOT valid XML, they need to fix it at their end.

    • Proposed as answer by Leo Erlandsson Thursday, November 21, 2019 8:00 AM
    Tuesday, November 19, 2019 2:09 AM