Jump to content
JasperReports Library 7.0 is now available ×

Strange XML Datasource behaviour


2006 IR Open Dicussion

Recommended Posts

By: Daniel R - doctor_jay

Strange XML Datasource behaviour

2006-01-11 02:17

Hi,

 

I've got a little problem which drives me crazy. I've created a report with a XML datasource. The XML File looks like this and is named text.xml:

 

<config_header> <configurationname>Test</configurationname>

<technic>AXH 2500</technic>

<configurationtype>Geräte</configurationtype>

<materiallist>Vodafone, AXR</materiallist>

<material_list_id>A1</material_list_id>

<model>Test</model>

<configurationstate>G</configurationstate>

</config_header>

 

connection properties are:

Name: test

XML file: C:iReport-0.5.3test.xml

Select expression: /config_header

 

In my report I've definied a text field in the report fields menu with settings:

field name: model

type: String

description: ./model

 

Then I've positioned this field in the middle of the detail band and enabled isStretchWithOverflow and set position type to float.

 

I've set the active connection to "test" and compile and run the report. No exception is thrown. iReports simply generates an empty document. Now, if I change the text.xml to the following, the report displays my $F{model} field and generates a page in the report.

 

<config_header>

<model>Test</model>

</config_header>

 

Anyone have an idea why the upper xml file doesn't work? Thanks in advance.

 

Greets

Daniel

 

(iReport 0.5.3)

 

 

 

 

 

By: Daniel R - doctor_jay

RE: Strange XML Datasource behaviour

2006-01-11 02:33

Ok, found the problem.

It seems that there are problems when xml files include special characters like ä, ö, ü etc. Is there any way to get around this problem without changing the xml file?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...