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
Seven Stars

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

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


All Replies
Thirteen Stars

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

You can use StringHandling.EREPLACE function in tXMLMap component

Manohar B
Seven Stars

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

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

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

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