/** * Parses ATOM feeds and returns an indexed array with all elements * * @author Jeroen Wijering * @version 1.4 **/ import com.jeroenwijering.feeds.AbstractParser; import com.jeroenwijering.utils.StringMagic; class com.jeroenwijering.feeds.ATOMParser extends AbstractParser { /** Contructor **/ function ATOMParser() { super(); }; /** build an array with all regular elements **/ private function setElements() { elements = new Object(); elements["title"] = "title"; elements["id"] = "id"; }; /** Convert ATOM structure to array **/ private function parse(xml:XML):Array { var arr = new Array(); var tpl = xml.firstChild.firstChild; var ttl; while(tpl != null) { if (tpl.nodeName.toLowerCase() == "entry") { var obj = new Object(); for(var j=0; j