Jump to content
JasperReports Library 7.0 is now available ×

Need all childs


sven.waibel

Recommended Posts

Hi,

i got following xml:

 

Code:

<a>
<b name="1" />
<b name="2" />
<b name="3" />
</a>

 

In my document it should be this way:

Code:
[code]
Name: 1
2
3

My problem is, i got always 1 resp. selected one (XPATH: a/b/@name or a/b[2]/@name). Is there a kind of for-each or something similar?

 

Thanks a lot

Sven

 

Post edited by: sven.waibel, at: 2007/05/11 08:54

Post edited by: sven.waibel, at: 2007/05/11 09:23

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

if u are using jasper this is the xml

 

<field name="Ur field goes here" class="java.lang.String"/>

 

<textFieldExpression class="java.lang.String"><![CDATA[$F{Ur field goes here}]]></textFieldExpression>

</textField>

<textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

x="74"

y="5"

width="74"

height="20"

key="textField"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement>

<font/>

</textElement>

 

but u do have to setop the rest of the document and this would go in the details band.

Post edited by: Case1182, at: 2007/05/11 14:35

Link to comment
Share on other sites

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