| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Sep 2008
Posts: 4
|
Dears,
I want to extract a attribute from a XML file. Can anyone please help me in this regard. Regards, Ram Sample XML file: ( Here i want to extract the attribute: valueClass) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jasperPrint PUBLIC "-//JasperReports//DTD JasperPrint//EN" "http://jasperreports.sourceforge.net/dtds/jasperprint.dtd"> <jasperPrint name="Buzz_Trend" pageWidth="595" pageHeight="842" locale="en_US" timezone="Asia/Calcutta"> <property name="net.sf.jasperreports.export.xml.page.count" value="1"/> <origin band="background"/> <origin band="title"/> <origin band="pageHeader"/> <origin band="columnHeader"/> <origin band="detail"/> <origin band="columnFooter"/> <origin band="pageFooter"/> <page> <text textHeight="12.578125" lineSpacingFactor="1.2578125" leadingOffset="-2.1972656" hyperlinkType="None" valueClass="java.math.BigDecimal" pattern="#0.00"> <reportElement key="textField" x="337" y="29" width="100" height="18" origin="4"/> <textContent><![CDATA[86.00]]></textContent> </text> <text textHeight="12.578125" lineSpacingFactor="1.2578125" leadingOffset="-2.1972656" hyperlinkType="None" valueClass="java.sql.Timestamp" pattern="M/d/yy h:mm a"> <reportElement key="textField" x="158" y="29" width="100" height="18" origin="4"/> <textContent><![CDATA[9/26/08 12:00 AM]]></textContent> </text> <text textHeight="12.578125" lineSpacingFactor="1.2578125" leadingOffset="-2.1972656" hyperlinkType="None" valueClass="java.math.BigDecimal" pattern="#0.00"> <reportElement key="textField" x="337" y="79" width="100" height="18" origin="4"/> <textContent><![CDATA[78.00]]></textContent> </text> <text textHeight="12.578125" lineSpacingFactor="1.2578125" leadingOffset="-2.1972656" hyperlinkType="None" valueClass="java.sql.Timestamp" pattern="M/d/yy h:mm a"> <reportElement key="textField" x="158" y="79" width="100" height="18" origin="4"/> <textContent><![CDATA[9/27/08 12:00 AM]]></textContent> </text> <text textHeight="12.578125" lineSpacingFactor="1.2578125" leadingOffset="-2.1972656" hyperlinkType="None" valueClass="java.math.BigDecimal" pattern="#0.00"> <reportElement key="textField" x="337" y="129" width="100" height="18" origin="4"/> <textContent><![CDATA[56.00]]></textContent> </text> <text textHeight="12.578125" lineSpacingFactor="1.2578125" leadingOffset="-2.1972656" hyperlinkType="None" valueClass="java.sql.Timestamp" pattern="M/d/yy h:mm a"> <reportElement key="textField" x="158" y="129" width="100" height="18" origin="4"/> <textContent><![CDATA[9/28/08 12:00 AM]]></textContent> </text> <text textHeight="12.578125" lineSpacingFactor="1.2578125" leadingOffset="-2.1972656" hyperlinkType="None" valueClass="java.math.BigDecimal" pattern="#0.00"> <reportElement key="textField" x="337" y="179" width="100" height="18" origin="4"/> <textContent><![CDATA[89.00]]></textContent> </text> <text textHeight="12.578125" lineSpacingFactor="1.2578125" leadingOffset="-2.1972656" hyperlinkType="None" valueClass="java.sql.Timestamp" pattern="M/d/yy h:mm a"> <reportElement key="textField" x="158" y="179" width="100" height="18" origin="4"/> <textContent><![CDATA[9/29/08 12:00 AM]]></textContent> </text> </page> </jasperPrint> |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A member attribute was used incorrectly. | meddlingwithfir | ActionScript 2.0 | 8 | 01-17-2008 07:53 AM |
| trouble accessing an XML attribute value | Zeratore | ActionScript 2.0 | 2 | 09-19-2007 08:10 PM |
| Reference Array attribute? | jgarcia@nmvinc.com | ActionScript 2.0 | 2 | 04-09-2007 05:09 PM |
| call XML node attribute dynamically | Flashchick | ActionScript 2.0 | 3 | 10-04-2006 11:51 AM |
| Buttton load attribute i (loop) from XML | probe4 | ActionScript 2.0 | 7 | 03-23-2006 04:32 PM |