Source code of XML Demo Application ("sample.readXML")
<div style="border:1px solid; margin:5px;padding:5px;">
<@xml url="http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&output=rss" var="myxml" />
<center>
<h3> ${myxml.rss.channel.title} </h3>
XML : <a href="http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&output=rss">http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&output=rss</a>
</center>
<#list myxml.rss.channel.item as ch>
<h4><a href="${ch.link}">${ch.title}</a></h4>
<p>${ch.description} </p>
<hr>
</#list>
</div>
blog comments powered by Disqus