Ktorrent doesn't parse rss

I want to use an RSS feed URL to automatize download using ktorrent. It works perfectly in my laptop with Kubuntu and it worked also in my system before I did a fresh install of Arch last days.
I'm getting this error when I try to update my RSS URL
dom mar 22 11:11:45 2015: Failed to load feed http://XXXXXXX/rss.php?user_id=XXXXX: Error de recepción desconocido
dom mar 22 11:11:45 2015: Error happened during parsing : Unknown DHT rpc call (transaction id = Ë)
Log of ktorrent:
dom mar 22 10:53:43 2015: Qt Debug: ktorrent(5123)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/ktmagnetgeneratorplugin.so" does not offer a qt_plugin_instance function.
dom mar 22 10:53:43 2015: Qt Debug: ktorrent(5123)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/ktdownloadorderplugin.so" does not offer a qt_plugin_instance function.
dom mar 22 10:53:43 2015: Qt Debug: ktorrent(5123)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/ktscanfolderplugin.so" does not offer a qt_plugin_instance function.
dom mar 22 10:53:43 2015: Qt Debug: ktorrent(5123)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/ktinfowidgetplugin.so" does not offer a qt_plugin_instance function.
Akregator, a RSS reader, works if I add any other RSS but if I add the same as in transmission, it gives the same error. But what it's awkward is that in my laptop with Kubuntu, the same RSS source works.
Could it be some missing packages? Any ideas??
Edit: more info
Last edited by doblerone (2015-03-22 12:36:24)

I want to use an RSS feed URL to automatize download using ktorrent. It works perfectly in my laptop with Kubuntu and it worked also in my system before I did a fresh install of Arch last days.
I'm getting this error when I try to update my RSS URL
dom mar 22 11:11:45 2015: Failed to load feed http://XXXXXXX/rss.php?user_id=XXXXX: Error de recepción desconocido
dom mar 22 11:11:45 2015: Error happened during parsing : Unknown DHT rpc call (transaction id = Ë)
Log of ktorrent:
dom mar 22 10:53:43 2015: Qt Debug: ktorrent(5123)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/ktmagnetgeneratorplugin.so" does not offer a qt_plugin_instance function.
dom mar 22 10:53:43 2015: Qt Debug: ktorrent(5123)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/ktdownloadorderplugin.so" does not offer a qt_plugin_instance function.
dom mar 22 10:53:43 2015: Qt Debug: ktorrent(5123)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/ktscanfolderplugin.so" does not offer a qt_plugin_instance function.
dom mar 22 10:53:43 2015: Qt Debug: ktorrent(5123)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/ktinfowidgetplugin.so" does not offer a qt_plugin_instance function.
Akregator, a RSS reader, works if I add any other RSS but if I add the same as in transmission, it gives the same error. But what it's awkward is that in my laptop with Kubuntu, the same RSS source works.
Could it be some missing packages? Any ideas??
Edit: more info
Last edited by doblerone (2015-03-22 12:36:24)

Similar Messages

  • Parse rss issue

    I've been trying to parse this rss feed
    http://www.economicnews.ca/cepnews/wire/rss/custom?u=camagazine&p=39d7g7d9
    Here is the code I'm using:
    <!--- Retrieve the RSS document --->
    <cfhttp url="
    http://www.economicnews.ca/cepnews/wire/rss/custom?u=camagazine&p=39d7g7d9"
    method="get">
    <cfhttpparam type="Header" name="Accept-Encoding"
    value="deflate;q=0">
    <cfhttpparam type="Header" name="TE"
    value="deflate;q=0">
    </cfhttp>
    <!--- Validation flag --->
    <cfset XMLVALIDATION = true>
    <cftry>
    <!--- Create the XML object --->
    <cfset objRSS = xmlParse(cfhttp.filecontent)>
    <cfcatch type="any">
    <!--- If the document retrieved in the CFHTTP
    is not valid set the validation flag to false. --->
    <cfset XMLVALIDATION = false>
    </cfcatch>
    </cftry>
    <cfif XMLVALIDATION>
    <!--- If the validation flag is true continue parsing
    --->
    <!--- Set the XML Root --->
    <cfset XMLRoot = objRSS.XmlRoot>
    <!--- Retrieve the document META data --->
    <cfset doc_title = XMLRoot.channel.title.xmltext>
    <cfset doc_link = XMLRoot.channel.link.xmltext>
    <cfset doc_description =
    XMLRoot.channel.description.xmltext>
    <cfset doc_content = XMLRoot.channel.content.xmltext>
    <!--- Output the meta data in the browser --->
    <!-- <cfoutput>
    <b>Title</b>: #doc_title#<br/>
    <b>Link</b>: #doc_link#<br/>
    <b>Description</b>:
    #doc_description#<br/><br/>
    </cfoutput> -->
    <!--- Retrieve the number of items in the channel --->
    <cfset Item_Length = arraylen(XMLRoot.channel.item)>
    <!--- Loop through all the items --->
    <cfloop index="itms" from="1" to="2">
    <!--- Retrieve the current Item in the loop --->
    <cfset tmp_Item = XMLRoot.channel.item[itms]>
    <!--- Retrieve the item data --->
    <cfset item_title = tmp_item.title.xmltext>
    <cfset item_link = tmp_item.link.xmltext>
    <cfset item_description = tmp_item.description.xmltext>
    <cfset item_content = tmp_item.content.xmltext>
    <!--- Output the items in the browser --->
    <cfoutput>
    <a href="#item_link#"
    target="_blank"><strong>#item_title#</strong></a><br/>
    #item_description#<br/><br/><br />
    #item_content#
    </cfoutput>
    </cfloop>
    <cfelse>
    <!--- If the validation flag is false display error
    --->
    Invalid XML/RSS object!
    </cfif>
    But it gives me the following error:
    Element CHANNEL.CONTENT.XMLTEXT is undefined in XMLROOT.
    The error occurred in
    E:\inetpub\wwwroot\cica\shane_upload_folder\rss_parse.cfm: line 31
    29 : <cfset doc_link = XMLRoot.channel.link.xmltext>
    30 : <cfset doc_description =
    XMLRoot.channel.description.xmltext>
    31 : <cfset doc_content =
    XMLRoot.channel.content.xmltext>
    I've checked and re-checked, I've done dumps and the content
    is there, so I'm not sure what the heck it doesn't like. Thoughts
    anyone?

    SirPainkiller wrote:
    > Ohhh I see. Ok so if we look under ITEM there is title,
    link, description, content:encoded, etc.. So now the question is
    how to I reference the content:encoded that is under item??
    >
    > Shane
    When accessing that type of RSS feed you need to use array
    notation
    rather then dot notation to get at the elements.
    I.E.
    <cfset doc_content =
    XMLRoot['channel']['item']['content:encoded']['xmltext']>

  • JSP 1.2: jsp expression in attribute value doesn't parse.

    Hi, I'm trying to use a jsp:expression in an html attribute value in JSP 1.2 but jasper doesn't seem to be able to parse it correctly. I'm using the XML syntax in my jsp, the relevant snippets are as follows:
    <jsp:scriptlet>
    String versionedPath = "/mysite/2.1/images";
    </jsp:scriptlet>
    <img src="%= versionedPath %/foo.jpg" />
    The JSP documentation claims that this will work but I'm beginning to think this syntax won't work when using JSP's XML syntax. I already know that the following won't work:
    <img src="<jsp:expression> versionedPath </jsp:expression>/foo.jpg" />
    as it did in JSP 1.1 because it's not well-formed xml.
    Is it even possible to use jsp expressions in attribute values when using JSP 1.2's XML syntax? If so, please enlighten me, and if not, well, that seems pretty broken to me.
    TIA...
    --Stuart

    you should use this:
    <img src=<%= versionedPath %>/foo.jpg >

  • Parse RSS feed -System.out

    Hi,
    As below i have been reading RSS feeds.
    When i execute the parser.parse(url) method i get a dump of the xml bones from the feed onto System.out, which in my case is a catalina log file.
    Is there any way/method that im not aware of that can prevent this going to System.out?
    public void readRSSDocument() throws Exception {
            //Create the parser
            RssParser parser = RssParserFactory.createDefault();
            //Parse our url
            Rss rss = parser.parse(
                    new URL("http://rss.cnn.com/rss/cnn_world.rss"));
        }output:
    <rss>
    <channel>
    <title>
    </title>
    <link>
    </link>
    <description>
    </description>
    <language>
    </language>
    <copyright>
    </copyright>
    <pubDate>
    </pubDate>
    <ttl>
    </ttl>
    <image>
    <title>
    </title>
    <link>
    </link>
    <url>
    </url>
    <width>
    </width>
    <height>
    </height>
    <description>
    </description>
    </image>
    <atom10:link>
    </atom10:link>
    <atom10:link>
    </atom10:link>
    <item>
    <title>
    </title>
    <guid>
    </guid>
    <link>
    </link>
    <description>
    </description>
    <pubDate>
    </pubDate>
    <feedburner:origLink>
    </feedburner:origLink>
    </item>
    <item>
    <title>
    </title>
    <guid>
    </guid>
    <link>
    </link>
    <description>
    </description>
    <pubDate>
    ..

    I am presuming that you picked up the code from [this tutorial|http://java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities/]
    Looks like the library was compiled with System.out.println() statements in it.
    There is always the handy little method "System.setOut()" to redirect it.
    Alternatively, decompile the code, delete/comment the System.out.println statements and then recompile it.
    Its not that hard. Here's the offending class:
    // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
    // Jad home page: http://www.kpdus.com/jad.html
    // Decompiler options: packimports(3)
    // Source File Name:   DocumentHandler.java
    package com.sun.cnpi.rss.handlers;
    import com.sun.cnpi.rss.elements.Element;
    import com.sun.cnpi.rss.elements.Rss;
    import java.io.PrintStream;
    import java.util.*;
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.DefaultHandler;
    // Referenced classes of package com.sun.cnpi.rss.handlers:
    //            NullElementHandler, ElementHandler, HandlerException
    public class DocumentHandler extends DefaultHandler
        public DocumentHandler()
            handlers = new HashMap();
            handlerStack = new Stack();
            parentStack = new Stack();
            rss = new Rss("rss");
            handlers.put(null, new NullElementHandler());
            parentStack.add(rss);
        public void registerHandler(String key, ElementHandler handler)
            handlers.put(key.toLowerCase(), handler);
        public void addToParentStack(Element parent)
            parentStack.add(parent);
        public Element popFromParentStack()
            return (Element)parentStack.pop();
        public Element peekParentStack()
            return (Element)parentStack.peek();
        public void startElement(String uri, String localName, String qName, Attributes attributes)
            throws SAXException
            //System.out.println("<" + qName + ">");
            try
                ElementHandler currentHandler = (ElementHandler)handlers.get(qName.toLowerCase());
                handlerStack.add(currentHandler);
                if(currentHandler != null)
                    Element parent = (Element)parentStack.peek();
                    currentHandler.startElement(this, parent, uri, localName, qName, attributes);
            catch(HandlerException e)
                e.printStackTrace();
            super.startElement(uri, localName, qName, attributes);
        public void characters(char ch[], int start, int length)
            throws SAXException
            StringBuffer buffer = new StringBuffer();
            Element element = (Element)parentStack.peek();
            if(element.getText() != null)
                buffer.append(element.getText());
            buffer.append(ch, start, length);
            element.setText(buffer.toString());
            super.characters(ch, start, length);
        public void endElement(String uri, String localName, String qName)
            throws SAXException
            //System.out.println("</" + qName + ">");
            if(!handlerStack.isEmpty())
                try
                    ElementHandler currentHandler = (ElementHandler)handlerStack.pop();
                    if(currentHandler != null)
                        Element parent = (Element)parentStack.peek();
                        currentHandler.endElement(this, parent, uri, localName, qName);
                catch(HandlerException e)
                    e.printStackTrace();
            super.endElement(uri, localName, qName);
        public Rss getRss()
            return rss;
        private Map handlers;
        private Stack handlerStack;
        private Stack parentStack;
        private Rss rss;
    }

  • XML newbie - parsing RSS

    Hello Everbody,
    i started playing around with xml and i am finding it very interesting...i have a question, how does one transform an rss feed using Java.(to use on my home page for example)? I know that they have an RSSUtilities package here on java.sun.com but i wanted to try it out on my own so that i get more experience using it..
    i was successfully able to parse xml docs using sax and dom approaches..(i use jaxp by the way..) also, i can transform xml to html using dom and xslt stylesheets but feeds?? if i use the same program that i used for sml files, at run time i get the following errors..
    Error: URI=file:D:/javapractice/inrss.xml Line=2: Element type "rss" is n
    ot declared.
    Error: URI=file:D:/javapractice/inrss.xml Line=2: Attribute "version" is
    not declared for element "rss".
    Error: URI=file:D:/javapractice/inrss.xml Line=3: Element type "channel"
    is not declared.
    Error: URI=file:D:/javapractice/inrss.xml Line=4: Element type "title" is
    not declared.
    Error: URI=file:D:/javapractice/inrss.xml Line=5: Element type "link" is
    not declared.
    Error: URI=file:D:/javapractice/inrss.xml Line=6: Element type "descripti
    on" is not declared.
    Error: URI=file:D://javapractice/inrss.xml Line=7: Element type "language"
    is not declared.
    Error: URI=file:D://javapractice/inrss.xml Line=8: Element type "pubDate"
    is not declared.
    Error: URI=file:D://javapractice/inrss.xml Line=9: Element type "copyright
    " is not declared.
    Error: URI=file:D://javapractice/inrss.xml Line=10: Element type "image" i
    s not declared.
    i think the above is understood because there is no dtd for these rss feeds... please, help me understand this as i am going crazy with this problem

    Hi Nachida,
    The code is very simple and I am posting it as below.. Please note that if I use a regular xml file, it gives me correct results but if I use an RSS feed, it complains..
    First the code..
    import org.xml.sax.helpers.DefaultHandler;
    import java.io.File;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.StreamSource;
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import javax.xml.parsers.ParserConfigurationException;
    import java.io.IOException;
    public class TransformRss
    { Document document;
         public TransformRss()
              {try
                   {DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
                     dbFactory.setValidating(true);
                    dbFactory.setIgnoringElementContentWhitespace(true);
                    DocumentBuilder documentBuilder = dbFactory.newDocumentBuilder();
                    document = documentBuilder.parse(new File("inrss.xml"));
              catch (SAXException e)
              {System.out.println("This is a SAX Exception");
              catch (ParserConfigurationException e)
              {System.out.println("This is a Parser Configuration Exception");
              catch (IOException e)
              {System.out.println("This is a IO Exception");
         public void transformTheDocument(File stylesheet)
              {try
                   {Transformer transformer = TransformerFactory.newInstance().newTransformer(new                 StreamSource(stylesheet));
                    transformer.transform(new DOMSource(document), new StreamResult( new File("alteredRss.html")));
              catch (TransformerConfigurationException e)
                   {System.out.println("This a transformer configuration exception");
              catch (TransformerException e)
                   {System.out.println(" this is a transformer exception");
         public static void main(String[] args) throws Exception
              {TransformRss transformRss = new TransformRss();
               transformRss.transformTheDocument(new File("program.xsl"));
    Now instead of rss.xml if I want to transform lets say resumexml.xml it works fine... I am posting both resumexml.xml and inrss.xml
    resumexml.xml-----------------------------------------------------------------------------------------
    <?xml version="1.0"?>
    <!DOCTYPE resume [
    <!ELEMENT resume (name, education, country)>
    <!ELEMENT name (#PCDATA)>
    <!ELEMENT education (#PCDATA)>
    <!ELEMENT country (#PCDATA)>
    ]>
    <resume>
    <name>sabrang</name>
    <education> engineer </education>
    <country> usa </country>
    </resume>
    inrss.xml--------------------------------------// or it could be any rss type of file...
    <?xml version="1.0" ?>
    <rss version="0.91">
    <channel>
    <title>rediff Top Stories - India</title>
    <link>http://www.rediff.com/</link>
    <description>India's largest news and entertainment service online.</description>
    <language>en-us</language>
    <pubDate>Sat, 10 Apr 2004 19:44:36 GMT</pubDate>
    <copyright>Copyright: (C) 2004 Rediff.com India Limited. All Rights Reserved.</copyright>
    <image>
    <title>rediff.com</title>
    <url>http://www.rediff.com/uim/red_log.gif</url>
    <link>http://www.rediff.com/</link>
    <width>144</width>
    <height>28</height>
    <description>Visit rediff.com</description>
    </image>
    <item>
    <title>I am a Bihari by birth, saysVajpayee</title>
    <link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/election/2004/apr/10pm.htm</link>
    <description>'I am a Bihari by birth. I was named Bihari by my father the day I was born,' the prime minister said in Patna.</description>
    </item>
    <item>
    <title>US army asks for ceasefire in Fallujah</title>
    <link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/news/2004/apr/10iraq.htm</link>
    <description>After more than a week of fighting the US army has occupied only a small portion of the town.</description>
    </item>
    <item>
    <title>'We'd like to have a Shoaib in our side' </title>
    <link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/cricket/2004/apr/10inter.htm</link>
    <description>India coach John Wright analyses the tour of Pakistan and discusses his future with the Indian team.</description>
    </item>
    <item>
    <title>Vaghela vs Vaghela in Kapadvanj</title>
    <link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/election/2004/apr/10guj1.htm</link>
    <description>Of the seven assembly segments in the constituency, four are with the BJP and the rest with the Congress. So, whichever way you look at it, it is going to be a contest of equals.</description>
    </item>
    <item>
    <title>Paes/Bhupathi give India 2-1 lead</title>
    <link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/sports/2004/apr/10doubles.htm</link>
    <description>The ace doubles pair beat Thomas Shimada and Takahiro Terachi in the doubles rubber of the Davis Cup Asia/Oceania Group I tie.</description>
    </item>
    <item>
    <title>On the road to peace, a dream bloodied</title>
    <link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/news/2004/apr/10uri.htm</link>
    <description>Just a few days back the prospects of the Srinagar-Muzzafarabad road reopening had looked bright.</description>
    </item>
    </channel>
    </rss>

  • Need help Loading parsed RSS text

    Hi, I have created an AS3 FLA where I am parsing and
    displaying RSS text. I have traced the parsed text and displayed
    the text into dynamic text boxes on the stage no problem.
    However the line breaks in the traced text show up on stage
    as well.
    How does one strip out the <p> or </r> tags from
    the text to make the text one nice long line that will wrap using
    the length of the text box as it's parameters?

    OK, I have found the answer, thanks all.
    var myvar:String = myDynamicText.text;
    myDynamicText.text = myvar.split("\r").join(" ");
    myDynamicText.text = myDynamicText.text.split("\n").join("

  • How to parse RSS

    I want to write a litte program so that it subtracts the tilte and contents of an RSS feed out to a text file. Since RSS is a type of XML file, I think there must be an API for parsing it. However, after I got to this site, I found that there are so many things that I have never heard of, so I don't know where to start.
    Could anybody tell me which API should I use or at least where to start?
    Thank you very much!

    Hey i need to know exactly what you posted so if you get any info will you let me no thanks

  • [SOLVED] Tmux doesn't parse the configuration for ~/.tmux.conf

    Similar to the issue found here, although since the solution posted does not work, I have nothing to go off of.  I did a trace on tmux, and it's reading the configuration file (also, even a removed ~/.tmux.conf doesn't have it read /etc/tmux.conf), but it isn't actually executing the commands I put in there.  I can source configuration manually inside tmux, so it's a minor annoyance at best.  Permissions are 644, it's in where it's supposed to read, but for some reason it just isn't parsing. 
    My tmux configuration right now:
    set-option prefix C-a
    set status-fg brightgreen
    set status-right "#[fg=brightwhite] (>^,^)><(^,^)><(^,^)><(^,^<) #[fg=brightgreen] #T #[fg=brightwhite] <(^,^<*>^,^)> #[fg=brightwhite] %F %T"
    set status-right-length 100
    set status-interval 1
    set status-bg blue
    bind C-a select-window -t !
    bind C-n select-window -t +
    bind C-p select-window -t -
    bind C-Space select-window -t +
    bind Space select-window -t +
    I've also killed the server and removed the socket and directory at /tmp/tmux-$(id -u)/ to no avail including a quick reboot.  I've also tried starting with tmux -f ~/.tmux.conf, also to no avail.  Am I missing something?
    Last edited by minozake (2012-08-25 14:55:18)

    I figured it out.  First off, I needed to use set -g in order to get the options set globally, otherwise they would be thrown away.  For all the keys I wanted to rebind, I needed to unbind them first.  All in all, I finally figured it out, but I don't remember actually needing to unbind the keys before rebinding them.

  • How to parse RSS Feed - Different URL for each button

    I'm making an app with AS3 and I want to be able to load a different RSS Feed when the user clicks on each button. This is the code I have so far, has anyone any idea how I can modify my code to do this?
    here's my code so far:
    //IMPORT CLASSES
    import fl.controls.List;
    import flash.net.URLLoader;
    import flash.events.Event;
    import flash.net.URLRequest;
    cGOSSIP.addEventListener(MouseEvent.CLICK, doClick);
    function doClick (e:MouseEvent):void
    cGOSSIP.gotoAndStop ("GOSSIP"); 
    wNEWS.addEventListener(MouseEvent.CLICK, doClick2);
    function doClick2 (e: MouseEvent):void
              wNEWS.gotoAndStop ("WORLD NEWS");
    eNEWS.addEventListener(MouseEvent.CLICK, doClick3);
    function doClick3 (e: MouseEvent):void
              eNEWS.gotoAndStop ("ENT NEWS");
    fbNEWS.addEventListener(MouseEvent.CLICK, doClick4);
    function doClick4 (e: MouseEvent):void
              fbNEWS.gotoAndStop ("FB NEWS");
    //NEWSLIST FORMATTING
    var newsListTf:TextFormat = new TextFormat();
    newsListTf.font = "Verdana";
    newsListTf.color = 0xFFFFFF;
    newsListTf.size = 18;
    newsListTf.align = "left";
    newsList.setRendererStyle("textFormat", newsListTf);
    newsList.rowHeight = 100;
    newsList.allowMultipleSelection = false;
    //newsList.wordWrap = true;
    //NEWSDISPLAY TEXT AREA FORMATTING
    var rssStoryTf:TextFormat = new TextFormat();
    rssStoryTf.font = "Verdana";
    rssStoryTf.color = 0x6699CC;
    rssStoryTf.size = 22;
    rssStoryTf.align = "left";
    rssStory.setStyle("textFormat", rssStoryTf);
    //READMORE BUTTON FORMATTING
    var buttonTf:TextFormat = new TextFormat();
    buttonTf.font = "Verdana";
    buttonTf.color = 0xFFFFFF;
    buttonTf.size = 22;
    btn_ReadMore.setStyle("textFormat", buttonTf);
    //RSS FEED
    var rssLoader:URLLoader = new URLLoader();
    var rssURL:URLRequest = new URLRequest
    ("http://rssfeeds.tv.adobe.com/adobe-higher-education-solutions.xml");
    rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
    newsList.addEventListener(Event.CHANGE, selectRssStory);
    btn_ReadMore.addEventListener(MouseEvent.CLICK, goToURL);
    rssLoader.load(rssURL);
    var newsXML:XML = new XML();
    var currentStoryURL:URLRequest = new URLRequest();
    newsXML.ignoreWhitespace = true;
    function rssLoaded(evt:Event):void
    newsXML = new XML(rssLoader.data);
    //trace(newsXML);
    for(var item:String in newsXML.channel.item) {
    //newsList.addItem({label: newsXML.channel.item[item].pubDate.substr(0, 16)
    //+": " + newsXML.channel.item[item].title } );
    newsList.addItem({label: newsXML.channel.item[item].title.substr(0, 40)
    +" ..." } );
    newsList.selectedIndex = 0;
    //FIRST LOAD
    currentStoryURL = new URLRequest(newsXML.channel.item[0].link);
    rssStory.htmlText = newsXML.channel.item[0].description;
    function selectRssStory(evt:Event):void
    rssStory.htmlText = newsXML.channel.item[evt.target.selectedIndex ].description;
    currentStoryURL = new URLRequest(newsXML.channel.item[evt.target.selectedIndex
    ].link);
    function goToURL(event:MouseEvent):void
    navigateToURL(currentStoryURL);

    I copied the wrong code, it works and loads the feed but I have a number of buttons in the main menu and I want to be able to load a different rss feed for each button?
    Here's the code.
    btn_Home.addEventListener(MouseEvent.CLICK, clickHome);
    function clickHome(e:MouseEvent):void
              gotoAndStop ("START");
    //NEWSLIST FORMATTING
    var newsListTf:TextFormat = new TextFormat();
    newsListTf.font = "Verdana";
    newsListTf.color = 339999;
    newsListTf.size = 18;
    newsListTf.align = "left";
    newsList.setRendererStyle("textFormat", newsListTf);
    newsList.rowHeight = 100;
    newsList.allowMultipleSelection = false;
    //newsList.wordWrap = true;
    //NEWSDISPLAY TEXT AREA FORMATTING
    var rssStoryTf:TextFormat = new TextFormat();
    rssStoryTf.font = "Verdana";
    rssStoryTf.color = 0x6699CC;
    rssStoryTf.size = 22;
    rssStoryTf.align = "left";
    rssStory.setStyle("textFormat", rssStoryTf);
    //READMORE BUTTON FORMATTING
    var buttonTf:TextFormat = new TextFormat();
    buttonTf.font = "Verdana";
    buttonTf.color = 0xFFFFFF;
    buttonTf.size = 22
    btn_ReadMore.setStyle("textFormat", buttonTf);
    //RSS FEED
    var rssLoader:URLLoader = new URLLoader();
    var rssURL:URLRequest = new URLRequest
    ("http://www.tmz.com/rss.xml");
    rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
    newsList.addEventListener(Event.CHANGE, selectRssStory);
    btn_ReadMore.addEventListener(MouseEvent.CLICK, goToURL);
    rssLoader.load(rssURL);
    var newsXML:XML = new XML();
    var currentStoryURL:URLRequest = new URLRequest();
    newsXML.ignoreWhitespace = true;
    function rssLoaded(evt:Event):void
    newsXML = new XML(rssLoader.data);
    //trace(newsXML);
    for(var item:String in newsXML.channel.item) {
    //newsList.addItem({label: newsXML.channel.item[item].pubDate.substr(0, 16)
    //+": " + newsXML.channel.item[item].title } );
    newsList.addItem({label: newsXML.channel.item[item].title.substr(0, 40)
    +" ..." } );
    newsList.selectedIndex = 0;
    //FIRST LOAD
    currentStoryURL = new URLRequest(newsXML.channel.item[0].link);
    rssStory.htmlText = newsXML.channel.item[0].description;
    function selectRssStory(evt:Event):void
    rssStory.htmlText = newsXML.channel.item[evt.target.selectedIndex ].description;
    currentStoryURL = new URLRequest(newsXML.channel.item[evt.target.selectedIndex
    ].link);
    function goToURL(event:MouseEvent):void
    navigateToURL(currentStoryURL);

  • CFHTTP Not Parsing RSS for Display

    I am using CF6.1, Windows Web Server 2003, on a Dell Server:
    I am having a problem with one specific RSS feed to display
    on a website (with permission), but can not get it to work. I am
    able to get RSS feeds from other sources to work using cfhttp and
    xmlparse(), just not this one. I need someone who knows RSS and XML
    to give me some direction. The feed from the source works fine
    through an RSS Reader and IE7, just not using the normal tools I
    have with CF.
    The specific feed is from GoUpstate.com Sports to display in
    assocation with a local Radio Station (www.espn1400am.com). The
    link is
    http://www.goupstate.com/apps/pbcs.dll/section?Category=RSS07&mime=xml.
    I have tried to do a simple cfhttp, xmlparse, and dump without
    success.
    Here is what I get in the CFCATCH:
    Message: Document root element is missing.
    Err Number: 0
    Type: Expression
    You can see where I am running some tests at
    http://www.searchupstate.com.
    Here I am using the same code to pull RSS Feeds froms several
    sources, I just can't get the aforementioned feed from
    GoUpstate.com to work.
    Thank you for your help in advance,
    David G. Moore, Jr.
    UpstateWeb LLC

    <cfset URLtoPULL="
    http://www.goupstate.com/apps/pbcs.dll/section?Category=RSS07&mime=xml">
    <cfhttp url="#URLtoPULL#" method="GET" timeout="15">
    <cfhttpparam type="Header" name="Accept-Encoding"
    value="deflate;q=0">
    <cfhttpparam type="Header" name="TE"
    value="deflate;q=0">
    </cfhttp>
    <cfset objRSS = xmlParse(cfhttp.filecontent)>
    <cfdump var="#objRSS#">
    This worked for me.
    I've seen this in the past. The web server is set to compress
    output. so adding
    <cfhttpparam type="Header" name="Accept-Encoding"
    value="deflate;q=0">
    <cfhttpparam type="Header" name="TE"
    value="deflate;q=0">
    to your <cfhttp> request deflates the response.

  • Parsing rss with as3sydicationlib

    can someone help me understand how to implement the
    as3sydicationlib
    I have attached where I have started but am unsure where to
    go from here or even if I am headed in the right direction.

    Here is the updated version for folks to see. Thanks again
    Raymond.
    ////////////////// BEGIN ACTIONSCRIPT ///////////////////////
    import fl.controls.TileList;
    import fl.controls.ScrollBarDirection;
    // Create TileList instance
    var myTileList:TileList = new TileList();
    var myScript:XML;
    var loader:URLLoader = new URLLoader();
    var request:URLRequest = new URLRequest("
    http://www.youtube.com/rss/user/teamriverrunner/videos.rss");
    loader.load(request);
    loader.addEventListener(Event.COMPLETE, onComplete);
    function onComplete(event:Event):void{
    var loader:URLLoader = URLLoader(event.target);
    var myRSS:XML = new XML(loader.data);
    loadLinks(myRSS);
    function loadLinks(myXML:XML):void{
    var media:Namespace = new Namespace("
    http://search.yahoo.com/mrss/");
    //default xml namespace = media;
    for each(var myLink:XML in myXML.channel.item){
    myTileList.addItem({label:myLink.title,
    source:myLink.media::thumbnail.@url});
    // Set scroll bar direction
    myTileList.direction = ScrollBarDirection.VERTICAL;
    // create TextFormat object for labels
    var tf:TextFormat = new TextFormat();
    //set textFormat font, color, and size
    tf.font = "Verdana";
    tf.bold = true;
    //tf.color = 0x990000;
    tf.size = 10;
    //set styles
    myTileList.setStyle("contentPadding", -1);
    myTileList.setRendererStyle("textFormat", tf);
    myTileList.setRendererStyle("imagePadding", -1);
    // position TileList and set column and row values
    myTileList.move(0,0);
    myTileList.columnWidth = 158;
    myTileList.rowHeight = 115;
    myTileList.columnCount = 1;
    myTileList.rowCount = 2;
    myTileList.width = 158;
    myTileList.height = 284;
    //myTileList.width = myTileList.columnWidth *
    myTileList.columnCount + (myTileList.contentPadding * 2) + 15;// if
    scroll bar direction is vertical
    // Add to the display (Stage)
    addChild(myTileList);
    ////////////////// END ACTIONSCRIPT
    ///////////////////////

  • How can i implement informa to parse rss feed?

    is there any sample code or instructions?
    i am a beginer
    thanks a lot!

    it's not going to be simple unless you make your own ads.
    if you do not make your own, you must use someone else's ads.  if you use someone else's ads, you must use their api to include their ads to your game.

  • Couldn't parse image from XML file using NSXMLParser

    Hi all, Since i am newbie to developing iPhone application, i have problem in parsing XML data.
    I use the following code for parsing XML file, this is RootViewController.h file
    #import <UIKit/UIKit.h>
    #import "SlideMenuView.h"
    #define kNameValueTag 1
    #define kColorValueTag 2
    #define kSwitchTag 100
    @class DetailViewController;
    @interface RootViewController : UIViewController <UITableViewDataSource, UITableViewDelegate> {
    DetailViewController *detailViewController;
    UITableView *myTable;
    UIActivityIndicatorView *activityIndicator;
    UIButton *btn;
    CGSize cellSize;
    NSXMLParser *rssParser;
    NSMutableArray *stories;
    NSMutableDictionary *item;
    NSString *currentElement;
    NSMutableString *currentTitle, *currentDate, *currentSummary, *currentLink, *currentImage;
    SlideMenuView *slideMenu;
    NSMutableArray *buttonArray;
    UIButton *rubic;
    UIButton *buurt;
    UIButton *beeld;
    UILabel *lbl;
    NSString *url;
    @property (nonatomic, retain) UITableView *myTable;
    @property (nonatomic, retain) DetailViewController *detailViewController;
    @property (nonatomic, retain) SlideMenuView *slideMenu;
    @property (nonatomic, retain) UIButton *btn;
    @property (nonatomic, retain) NSMutableArray *buttonArray;
    @property (nonatomic, retain) UIButton *rubic;
    @property (nonatomic, retain) UIButton *buurt;
    @property (nonatomic, retain) UIButton *beeld;
    @property (nonatomic, retain) UILabel *lbl;
    @end
    below is the RootViewController.m file,
    #import <Foundation/Foundation.h>
    #import "RootViewController.h"
    #import "DetailViewController.h"
    #import "SlideMenuView.h"
    @implementation RootViewController
    @synthesize rubic, buurt, beeld, detailViewController, myTable, btn, buttonArray, slideMenu, lbl;
    - (void)parseXMLFileAtURL:(NSString *)URL {
    stories = [[NSMutableArray alloc] init];
    //you must then convert the path to a proper NSURL or it won't work
    NSURL *xmlURL = [NSURL URLWithString:URL];
    // here, for some reason you have to use NSClassFromString when trying to alloc NSXMLParser, otherwise you will get an object not found error
    // this may be necessary only for the toolchain
    rssParser = [[NSXMLParser alloc] initWithContentsOfURL:xmlURL];
    // Set self as the delegate of the parser so that it will receive the parser delegate methods callbacks.
    [rssParser setDelegate:self];
    // Depending on the XML document you're parsing, you may want to enable these features of NSXMLParser.
    [rssParser setShouldProcessNamespaces:NO];
    [rssParser setShouldReportNamespacePrefixes:NO];
    [rssParser setShouldResolveExternalEntities:NO];
    [rssParser parse];
    - (void)parser:(NSXMLParser *)parser parseErrorOccurred:(NSError *)parseError {
    NSString * errorString = [NSString stringWithFormat:@"Unable to download story feed from web site (Error code %i )", [parseError code]];
    NSLog(@"error parsing XML: %@", errorString);
    UIAlertView * errorAlert = [[UIAlertView alloc] initWithTitle:@"Error loading content" message:errorString delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [errorAlert show];
    - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict{
    //NSLog(@"found this element: %@", elementName);
    currentElement = [elementName copy];
    if ([elementName isEqualToString:@"item"]) {
    // clear out our story item caches...
    item = [[NSMutableDictionary alloc] init];
    currentTitle = [[NSMutableString alloc] init];
    currentDate = [[NSMutableString alloc] init];
    currentSummary = [[NSMutableString alloc] init];
    currentLink = [[NSMutableString alloc] init];
    currentImage = [[NSMutableString alloc] init];
    - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName{
    //NSLog(@"ended element: %@", elementName);
    if ([elementName isEqualToString:@"item"]) {
    // save values to an item, then store that item into the array...
    [item setObject:currentTitle forKey:@"title"];
    [item setObject:currentSummary forKey:@"summary"];
    [item setObject:currentDate forKey:@"date"];
    [item setObject:currentImage forKey:@"enclosure"];
    [stories addObject:[item copy]];
    NSLog(@"adding story: %@", currentTitle);
    - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string{
    //NSLog(@"found characters: %@", string);
    // save the characters for the current item...
    if ([currentElement isEqualToString:@"title"]) {
    [currentTitle appendString:string];
    } else if ([currentElement isEqualToString:@"description"]) {
    [currentSummary appendString:string];
    } else if ([currentElement isEqualToString:@"pubDate"]) {
    [currentDate appendString:string];
    } else if ([currentElement isEqualToString:@"enclosure"]) {
    [currentImage appendString:string];
    - (void)parserDidEndDocument:(NSXMLParser *)parser {
    [activityIndicator stopAnimating];
    [activityIndicator removeFromSuperview];
    NSLog(@"all done!");
    NSLog(@"stories array has %d items", [stories count]);
    [myTable reloadData];
    - (void)loadView {
    //self.title = @"GVA_iPhone";
    //UIImage *img = [UIImage imageNamed: @"gva_v2.1.png"];
    CGRect frame = [[UIScreen mainScreen] bounds];
    UIView *aView = [[UIView alloc] initWithFrame:frame];
    aView.backgroundColor = [UIColor grayColor];
    self.view = aView;
    [aView release];
    lbl = [[UILabel alloc] initWithFrame:CGRectMake(0.0, 33.0, 320.0, 30.0)];
    lbl.backgroundColor = [UIColor colorWithRed:21.0/255.0 green:113.0/255.0 blue:194.0/255.0 alpha:1.0];
    lbl.textColor = [UIColor whiteColor];
    lbl.font = [UIFont boldSystemFontOfSize:18.0];
    [self.view addSubview:lbl];
    [lbl release];
    buttonArray = [[NSMutableArray alloc] init];
    for(int i = 1; i < 4; i++)
    // Rounded rect is nice
    //UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    // Give the buttons a width of 100 and a height of 30. The slide menu will take care of positioning the buttons.
    // If you don't know that 100 will be enough, use my function to calculate the length of a string. You find it on my blog.
    [btn setFrame:CGRectMake(0.0f,3.0f, 120.0f, 30.0f)];
    switch(i){
    case 1:
    [btn setTitle:[NSString stringWithFormat:@" Snel", i+1] forState:UIControlStateNormal];
    [btn setBackgroundImage:[UIImage imageNamed:@"topbg02.png"] forState:UIControlStateNormal];
    lbl.text = @" Snel";
    [btn addTarget:self action:@selector(buttonPressed:) forControlEvents:UIControlEventTouchUpInside];
    [buttonArray addObject:btn];
    break;
    case 2:
    [btn setTitle:[NSString stringWithFormat:@" Binnenland", i+1] forState:UIControlStateNormal];
    [btn setBackgroundImage:[UIImage imageNamed:@"topbg02.png"] forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
    [buttonArray addObject:btn];
    break;
    case 3:
    [btn setTitle:[NSString stringWithFormat:@" Buitenland", i+1] forState:UIControlStateNormal];
    [btn setBackgroundImage:[UIImage imageNamed:@"topbg02.png"] forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(buttonTouched:) forControlEvents:UIControlEventTouchUpInside];
    [buttonArray addObject:btn];
    break;
    [btn release];
    slideMenu = [[SlideMenuView alloc]initWithFrameColorAndButtons:CGRectMake(0.0, 3.0, 330.0, 30.0) backgroundColor:[UIColor blackColor] buttons:buttonArray];
    [self.view addSubview:slideMenu];
    UITableView *aTableView = [[UITableView alloc] initWithFrame:CGRectMake(0.0, 63.0, 320.0, 310.0)];
    aTableView.dataSource = self;
    aTableView.delegate = self;
    aTableView.rowHeight = 120;
    self.myTable = aTableView;
    [aTableView release];
    [self.view addSubview:myTable];
    rubic = [[UIButton alloc]initWithFrame:CGRectMake(0.0, 370.0, 105.0, 50.0)];
    [rubic setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [rubic setBackgroundImage:[UIImage imageNamed:@"MOUSEOVER.png"] forState:UIControlStateNormal];
    [rubic addTarget:self action:@selector(buttonBinn:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:rubic];
    UILabel *lblRub = [[UILabel alloc]initWithFrame:CGRectMake(10.0, 385.0, 45.0, 12.0)];
    lblRub.text = @"Rubriek";
    lblRub.font = [UIFont boldSystemFontOfSize:11.0];
    lblRub.backgroundColor = [UIColor clearColor];
    lblRub.textColor = [UIColor whiteColor];
    [self.view addSubview:lblRub];
    UIImageView *imgCat = [[UIImageView alloc] initWithFrame:CGRectMake(58.0, 375.0, 39.0, 36.0)];
    imgCat.image = [UIImage imageNamed:@"category_icon.png"];
    [self.view addSubview:imgCat];
    buurt = [[UIButton alloc] initWithFrame:CGRectMake(105.0, 370.0, 108.0, 50.0)];
    [buurt setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [buurt setBackgroundImage:[UIImage imageNamed:@"bottombg01.png"] forState:UIControlStateNormal];
    [buurt addTarget:self action:@selector(buttonBuurt:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:buurt];
    UILabel *lblGlo = [[UILabel alloc]initWithFrame:CGRectMake(112.0, 385.0, 59.0, 12.0)];
    lblGlo.text = @"In de Buurt";
    lblGlo.font = [UIFont boldSystemFontOfSize:11.0];
    lblGlo.backgroundColor = [UIColor clearColor];
    lblGlo.textColor = [UIColor whiteColor];
    [self.view addSubview:lblGlo];
    UIImageView *imgGlo = [[UIImageView alloc] initWithFrame:CGRectMake(173.0, 375.0, 39.0, 36.0)];
    imgGlo.image = [UIImage imageNamed:@"globe_icon.png"];
    [self.view addSubview:imgGlo];
    beeld = [[UIButton alloc]initWithFrame:CGRectMake(213.0, 370.0, 108.0, 50.0)];
    [beeld setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [beeld setBackgroundImage:[UIImage imageNamed:@"bottombg01.png"] forState:UIControlStateNormal];
    [beeld addTarget:self action:@selector(buttonBeeld:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:beeld];
    UILabel *lblCam = [[UILabel alloc]initWithFrame:CGRectMake(228.0, 385.0, 45.0, 12.0)];
    lblCam.text = @"In Beeld";
    lblCam.font = [UIFont boldSystemFontOfSize:11.0];
    lblCam.backgroundColor = [UIColor clearColor];
    lblCam.textColor = [UIColor whiteColor];
    [self.view addSubview:lblCam];
    UIImageView *imgCam = [[UIImageView alloc] initWithFrame:CGRectMake(276.0, 375.0, 39.0, 36.0)];
    imgCam.image = [UIImage imageNamed:@"camera_icon.png"];
    [self.view addSubview:imgCam];
    if([stories count] == 0) {
    [self parseXMLFileAtURL:@"http://iphone.concentra.exuvis.com/feed/rss/article/2/binnenland.xml"];
    cellSize = CGSizeMake([myTable bounds].size.width,60);
    - (IBAction)buttonPressed:(id)sender {
    lbl.text = ((UIButton*)sender).currentTitle;
    - (IBAction)buttonClicked:(id)sender {
    lbl.text = ((UIButton*)sender).currentTitle;
    - (IBAction)buttonTouched:(id)sender {
    lbl.text = ((UIButton*)sender).currentTitle;
    -(void)buttonBinn:(id)sender
    [rubic setBackgroundImage:[UIImage imageNamed:@"MOUSEOVER.png"] forState:UIControlStateNormal];
    [buurt setBackgroundImage:[UIImage imageNamed:@"bottombg01.png"] forState:UIControlStateNormal];
    [beeld setBackgroundImage:[UIImage imageNamed:@"bottombg01.png"] forState:UIControlStateNormal];
    -(void)buttonBuurt:(id)sender
    [buurt setBackgroundImage:[UIImage imageNamed:@"MOUSEOVER.png"] forState:UIControlStateNormal];
    [beeld setBackgroundImage:[UIImage imageNamed:@"bottombg01.png"] forState:UIControlStateNormal];
    [rubic setBackgroundImage:[UIImage imageNamed:@"bottombg01.png"] forState:UIControlStateNormal];
    -(void)buttonBeeld:(id)sender
    [beeld setBackgroundImage:[UIImage imageNamed:@"MOUSEOVER.png"] forState:UIControlStateNormal];
    [rubic setBackgroundImage:[UIImage imageNamed:@"bottombg01.png"] forState:UIControlStateNormal];
    [buurt setBackgroundImage:[UIImage imageNamed:@"bottombg01.png"] forState:UIControlStateNormal];
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
    - (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
    // Release anything that's not essential, such as cached data
    - (void)dealloc {
    [myTable release];
    [detailViewController release];
    [super dealloc];
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return [stories count];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"GVAiPhone"];
    if (cell == nil) {
    //CGRect cellFrame = CGRectMake(0, 0, 300, 65);
    cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"GVAiPhone"] autorelease];
    //cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    //cell.accessoryView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"arrow_icon.png"]];
    CGRect nameValueRect = CGRectMake(5, 5, 275, 35);
    UILabel *nameValue = [[UILabel alloc] initWithFrame:nameValueRect];
    nameValue.tag = kNameValueTag;
    nameValue.font = [UIFont fontWithName:@"Arial" size:15.0];
    nameValue.lineBreakMode = UILineBreakModeWordWrap;
    nameValue.numberOfLines = 2;
    [cell.contentView addSubview:nameValue];
    [nameValue release];
    CGRect colorValueRect = CGRectMake(5, 38, 275, 65);
    UILabel *colorValue = [[UILabel alloc] initWithFrame:colorValueRect];
    colorValue.tag = kColorValueTag;
    colorValue.font = [UIFont fontWithName:@"Arial" size:11.0];
    colorValue.textColor = [UIColor colorWithRed:130.0/255.0 green:135.0/255.0 blue:139.0/255.0 alpha:1.0];
    colorValue.lineBreakMode = UILineBreakModeWordWrap;
    colorValue.textAlignment = UITextAlignmentLeft;
    colorValue.numberOfLines = 6;
    [cell.contentView addSubview:colorValue];
    [colorValue release];
    // Set up the cell
    //cell.text = [theSimpsons objectAtIndex:indexPath.row];
    //cell.hidesAccessoryWhenEditing = YES;
    NSUInteger storyIndex = [indexPath row];
    NSDictionary *rowData = [stories objectAtIndex:storyIndex];
    UILabel *name = (UILabel *)[cell.contentView viewWithTag:kNameValueTag];
    name.text = [rowData objectForKey:@"title"];
    //name.lineBreakMode;
    //UIImage *image =[UIImage imageNamed: currentImage];imageWithContentsOfFile
    //image.size.width = 50;
    //iimage.size.height = 50;
    //cell.image = [UIImage imageNamed:currentImage];
    cell.accessoryView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"arrow_icon.png"]];
    UILabel *color = (UILabel *)[cell.contentView viewWithTag:kColorValueTag];
    color.text = [rowData objectForKey:@"summary"];
    return cell;
    @end
    - here the actual problem is the xml node <enclosure> contains images but in using the method "didEndElement" , it doesn't parse into the <enclosure> node. ya so please help me in parsing and getting the image.
    Waiting for your help !!
    -Sathiya

    Hi, how did you solve your problem in detail. I'm having the same problem with this rss-feed: www.spiegel.de/index.rss
    I cannot parse the url of the images. I'm looking forward to your answer.

  • Remove RSS subscribe button from Iweb 08

    How do I remove the RSS feed button from some of my pages/photo galleries in iWeb 08?
    I also noticed that my navigation bar does not show up in Dreamweaver CS3. The navigation bar would show up fine in the old iWeb. Is there a compatibility issue with the two?
    Thanks in advance.
    Best,
    Che

    Can anyone give me info on how to fix this?
    What browser are you using? FireFox doesn't do RSS unless you add an extension like Sage. Does it work right with Safari?

  • Error parsing envelope: Header child element must be namespace qualified

    Hey all,
    I'm creating a BPEL process that invokes a web service. The web service has an authenticate method that returns a session ID that I attempt to invoke. However, the process fails when trying to parse the response when invoking that operation. I checked the server logs and it's reporting the following: javax.xml.soap.SOAPException: Error parsing envelope: most likely due to an invalid SOAP message.: Header child element 'ID' must be namespace qualified!
    So I invoked the authenticate operation using SOAP UI, since it doesn't parse the response but merely displays it, and here's what was returned (slightly modified):
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header>
          <ID>xxx</ID>
       </soapenv:Header>
       <soapenv:Body>
          <ns1:SessionID xmlns:ns1="http://some-namespace">
             <ns1:ID>xxx</ns1:ID>
          </ns1:SessionID>
       </soapenv:Body>
    </soapenv:Envelope>
    Indeed the ID tag in the header doesn't have a namespace prefix. Looking at the SOAP 1.1 spec it says, “A header entry is identified by its fully qualified element name, which consists of the namespace URI and the local name. All immediate child elements of the SOAP Header element MUST be namespace-qualified.”
    I was told that the code for the web service is frozen and cannot be changed. Are there any ways around this problem? Is it possible for the BPEL process to not parse the SOAP header?
    Thanks,
    Bill

    All,
    I think I might use a HeaderHandler to either strip the offending element from the header all together or modify it so that it's namespace qualified. The problem is, I can't find much documentation on it. The only thing I can find is this: Manipulating XML Data in BPEL section 3.19. It says to implement the HeaderHandler interface but doesn't give the fully qualified name of the interface. I'm guessing it's referring to com.collaxa.cube.ws.HeaderHandler. The invoke method that is defined in the interface is a little different than the one in the documentation. Mine has a signature of public void invoke(CXPartnerLink partnerLink, String operationName, Map payload, List list, Map map2)...what do these parameters represent and what key/value types do the maps have? It also says to register the handler in the bpel.xml deployment descriptor file but I can't find one - is it auto-generated? If so, where is it. If not, how do I generate it? I appreciate any information.
    Thanks,
    Bill

Maybe you are looking for

  • Error on Query which is based on Infoset.

    Hi SAP Gurus, We have created the Query based on 2 ODS and one Infoobject. ODS2 is joined to ODS1 Infoobject is joined to ODS1 both the joins are outer join... We are getting the error when we are executing the Query Error is " SQL error for Info pro

  • Upgrading Imac from 10.5.8 to Snow leopard, will I be able to bring back programs like photoshop from my old backup to the new operating system without the program disc, if so how?

    So my imac has the older version 10.5.8 on it and in order to use some programs I need to upgrade to snow leopard. I made a full back up on my external harddrive already, now I need to repair the disc of the computer because it will not verify. So th

  • 100% Width on Fluid Grid layout?

    I am working on a site for a school project and my mockup looks like this: http://i.imgur.com/DLz1T3S.jpg Each section is 100% width and with varying images/patterns in the background. I have searched a lot about this and it seems what I found was th

  • CS3 Subselection Tool Shift Drag?

    Is it just me or is it impossible to constrain the movement of points selected with the Subselection Tool by Shift-Drag? Properties window also does not show x and y for a collection of points selected with the the Subselection Tool and the same poin

  • Having issues running steam

    i did a fresh install of arch a few days ago and steam stopped working on the 2nd. i don't know why. what i tried so far: purge all and reinstall steam and xset +fp /usr/share/fonts/100dpi/ in vain. anyways steam Running Steam on arch rolling 64-bit