How to convert xml tag $lt; $gt to < and > ?

Seven Stars

How to convert xml tag $lt; $gt to < and > ?

Hello, its me again, I have my  output XML file getting by tXmlMap and tHttpRequest  , but my xml file have not the tag < and > or ' , for exemple , how can i convert it ?

<?xml version="1.0" encoding="UTF-8"?>
<root>
<row>
<ows_Title>a_Title</ows_Title>
<ResponseContent>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;?mso-infoPathSolution name=&quot;urn:schemas-microsoft-com:office:infopath&quot; solutionVersion=&quot;0.0.0.394&quot; productVersion=&quot;14.0.0.0&quot; PIVersion=&quot;1.0.0.0&quot; href=&quot&lt;?mso-application progid=&quot;InfoPath.Document&quot; versionProgid=&quot;InfoPath.Document.3&quot;?&gt;
&lt;?mso-infoPath-file-attachment-present?&gt;


Accepted Solutions
Eight Stars

Re: How to convert xml tag $lt; $gt to < and > ?

I've always used StringEscapeUtils.unescapeHtml for this purpose.


All Replies
Highlighted
Forteen Stars

Re: How to convert xml tag $lt; $gt to < and > ?

You can use StringHandling.EREPLACE function in tXMLMap component

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Eight Stars

Re: How to convert xml tag $lt; $gt to < and > ?

I've always used StringEscapeUtils.unescapeHtml for this purpose.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download