Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-03-2008, 12:42 PM   #1
kvramach
Registered User
 
Join Date: Sep 2008
Posts: 4
Default Attribute Extraction

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>
kvramach is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A member attribute was used incorrectly. meddlingwithfir ActionScript 2.0 8 01-17-2008 06:53 AM
trouble accessing an XML attribute value Zeratore ActionScript 2.0 2 09-19-2007 07:10 PM
Reference Array attribute? [email protected] ActionScript 2.0 2 04-09-2007 04:09 PM
call XML node attribute dynamically Flashchick ActionScript 2.0 3 10-04-2006 10:51 AM
Buttton load attribute i (loop) from XML probe4 ActionScript 2.0 7 03-23-2006 03:32 PM


All times are GMT. The time now is 02:07 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.