special character in xml Datasource



I have a specical character in my xml Datasource:


The Text should read "<test" in my Pdf. 

This code in the Text Field jasper Studio does not work: 

$F{xmltag}.contains( "&lt;" )?$F{xmltag}.replace( "&lt;","<" ):$F{xmltag}

Can you please help me?

Thank you


ye_l's picture
Joined: Mar 12 2019 - 1:11am
Last seen: 20 hours 25 min ago

ok, I found out. It's very easy. All you have to do is set the Attribute Markup text value to "html"

ye_l - 1 year 3 weeks ago

0 Answers:

No answers yet