jsbeans

jsbeans  1.0.0

jsbeans > jsbeans > jsbeans.RssReader
Search:
 
Filters

Class jsbeans.RssReader

Pure javascript implementation to read xml in RSS format.

Constructor

jsbeans.RssReader ( txt )
Parameters:
txt <String> the rss xml string.It may be a result of an AJAX call.

Methods

getCopyright

String getCopyright ( )
Returns: String

getDescription

String getDescription ( )
Returns: String

getDocument

DOMParser getDocument ( )
Return the DOMParser or Microsoft.XMLDOM to manage XML.
Returns: DOMParser

getImage

String getImage ( )
Returns: String

getImageHeight

String getImageHeight ( )
FIXME: change return type to Integer
Returns: String

getImageLink

String getImageLink ( )
Returns: String

getImageTitle

String getImageTitle ( )
Returns: String

getImageUrl

String getImageUrl ( )
Returns: String

getImageWidth

String getImageWidth ( )
FIXME: change return type to Integer
Returns: String

getItems

Arrat&tl;DOM> getItems ( )
Returns: Arrat&tl;DOM>

getJSONItems

Array<JSON> getJSONItems ( )
Returns RSS in JSON format
Returns: Array<JSON>

getLanguage

String getLanguage ( )
Returns: String

getLastBuildDate

String getLastBuildDate ( )
FIXME: change return type to Date
Returns: String

getLink

String getLink ( )
Returns: String

getPubDate

String getPubDate ( )
FIXME: change return type to Date
Returns: String

getTitle

String getTitle ( )
Returns: String

getTtl

String getTtl ( )
Returns: String

stripHTML

static String stripHTML ( str )
Also kmown as innerText. A way to get text within HTML/XML tags.
Parameters:
str <String> a string in HTML or XML format
Returns: String
the text contained in str without tags.


Copyright © 2016 Francesco Mele. All rights reserved.