Jump to content
We've recently updated our Privacy Statement, available here ×

XML and negative Float numbers = null?


pablodc

Recommended Posts

Hi,

    I'm using a XML datasource in my report with this content:

=== starts here ===

<?xml version="1.0"?>
<prices>

  <book>
    <title>Data on the Web</title>
    <source>www.bn.com</source>
    <price>39.12</price>
  </book>

  <book>
    <title>Data on the Web</title>
    <source>www.bn.com</source>
    <price>-39.43</price>
  </book>

</prices>

=== ends here ===

     And defined the field type for the tag "price" as java.lang.Float.

     But I have a problem: the negative number is displayed as "null" instead the value.

     What can I do?,  if I change the field type to java.lang.Double the problem disappear. What I doing wrong?

Thanks a lot for your help.

 

 

 

 

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