Jump to content
Changes to the Jaspersoft community edition download ×

Bug when setting up image


Recommended Posts

By: Michel - micheljr

Bug when setting up image

2003-02-22 06:12

Hi Teodor,

 

Everytime I try to insert an image, the word "CDATA" is inserted by iReport in the xml source code.

See below:

<imageExpression class="java.io.File"><![CDATA[new File($P{BaseDir}, "../img/logo.gif")]]></imageExpression>

 

I can correct my xml source code removing the word "CDATA" using Notepad, but when I load it using iReport, the "CDATA" is automatically inserted again.

 

Hope you can solve this.

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Bug when setting up image

2003-02-22 12:31

 

Hi,

 

This is not a bug.

The <![CDATA[ and the ]]> character sequences

are part of the XML syntax.

They allow you to put special characters inside

the text body of XML elements.

 

You just let these delimiters in place because they

do not pose any problem and in many cases they

even help.

 

Check this for example:

 

http://jasperreports.sourceforge.net/faq.html#faq3

 

I hope this helps.

Teodor

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...