Adobe Dreamweaver Forums



Last 10 THreads :         Multiple Netstreams (live feeds) best practices (Last Post : techeye - Replies : 3 - Views : 4 )           »          Dynamic XML Array Push ? (Last Post : Jadeivy - Replies : 0 - Views : 1 )           »          How to make a paypal button? (Last Post : loki2357 - Replies : 0 - Views : 1 )           »          How to align XML loading text to right (Last Post : Boxing Boom - Replies : 8 - Views : 9 )           »          Why is this not working!!! (Last Post : NedWebs - Replies : 10 - Views : 11 )           »          ProgressBar and myPlayer (Last Post : kglad - Replies : 3 - Views : 4 )           »          Flash-PHP Mail Form (Last Post : richmaxw - Replies : 2 - Views : 3 )           »          flash loader reappears after movie plays (Last Post : lyshamo - Replies : 2 - Views : 4 )           »          Call out side flex (Last Post : mab_bond - Replies : 1 - Views : 2 )           »          Flex compiler in FlexBuilder and Flex SDK (Last Post : mab_bond - Replies : 3 - Views : 4 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 10-03-2008, 01:53 PM
kvramach
 
Posts: n/a
Diggs:
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/jasperp rint.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>




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-03-2008, 05:01 PM
Greg Lafrance
 
Posts: n/a
Diggs:
Default Re: Attribute Extraction

See FB3 help sys on e4x syntax. It has good support for accessing xml attributes.
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 10:45 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk