Get Node Value from Attribute

pchainarong <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi all,

Please help me how to access the value of Node that has attribute
@label='LastClase'.

Let say my data like this
<header>
  <data label="CompanyName">Telstra Corporation Limited</data>
  <data label="GICSIndustry">Diversified Telecommunication Services</data>
  <data label="LastClose">3.25</data>
  <data label="GICSIndustryGroup">Telecommunication Services</data>
  <data label="GICSSector">Telecommunication Services</data>
</header>

I can access it from <data> index like ${doc.header.doc[2]} but I don't know
how to access it from @label value.

I try many ways but still got error
${header.data[@label='TradingStatus']}
${header.data.@label['TradingStatus']}
${header.data["@label='TradingStatus'"]}

Please help.....

--
View this message in context: http://freemarker.624813.n4.nabble.com/Get-Node-Value-from-Attribute-tp4456246p4456246.html
Sent from the freemarker-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.