Skip to main content

Posts

Showing posts from November, 2013

Read a RSS using StAX for XML Parsing

This entry will introduce how to read a RSS by using StAX. RSS : stand for Rich Site Summary. RSS document (called feed or web feed) include full or summarized text and metadata like publishing date, author's name,... RSS document is a XML file and is specified via RSS specification. StAX : stand for Streaming API for XML, is API for XML processing. * Create a Domain model to represent a Feed.  Feed Example <? xml version = " 1.0 " encoding = " UTF-8 " ?> <? xml-stylesheet title = " XSL_formatting " type = " text/xsl " href = " /shared/bsp/xsl/rss/nolsol.xsl " ?> < rss xmlns : media = " http : // search.yahoo.com /mrss/ " xmlns : atom = " http : // www.w3.org /2005/Atom " version = " 2.0 " > < channel > < title > BBC News - Asia </ title > < link > http://www.bbc.co.uk/news/world/asia/#sa-ns_mchannel=rss & amp ; ns_sou...