Get an XML from a URL in the widget

We are a Blackberry widget to display any RSS FEED. If we want to get the XML for the RSS feed, from the link,

http://www.puuba.com/team/blog.RSS

Now we're directyl open link and showing the flow on the browser using href in html. But we want to classify the stream based on the location and date, so we want to get the XML tags and then analyze using a parser using Javascript.

Please let us know as soon as possible.

You should be able to recover the http://www.puuba.com/team/blog.rss URL in an AJAX request.  The property responseXML of the XMLHttpRequest object is an already parsed XML object.  You can then look at the contents of the XML file and it classify as a result.

Here's an interesting article on the subject, I found:

http://articles.TechRepublic.com.com/5100-10878_11-6058865.html

Tags: BlackBerry Developers

Similar Questions

  • Launch the application from a url in the browser for BlackBerry?

    I'm developing an application where I will launch a url in the browser where I run my application.

    Suppose if I click google.com , and then press enter, it will launch my app. For this, I tried with the HttpFilterRegistry API.

    For reference, I use the HTTPFilterDemo application. But currently while launching the application, I get the NullPointerException .

    I wrote the code below I have the openFilter method:

      public Connection openFilter( String name, int mode, boolean timeouts ) throws IOException
        {
            Logger.out("Protocol", "it is inside the openFilter method");
            _url = name.substring(2);
            _requestHeaders = new HttpHeaders();
            _responseHeaders = new HttpHeaders();
            _responseHeaders.setProperty(HttpProtocolConstants.HEADER_CONTENT_TYPE, "text/html");
    
            // Attempt to parse for the file name
            int slashIndex = name.indexOf('/', 2);
       if (_resultData == null)
            {
    
    final int modHandle = CodeModuleManager.getModuleHandle("AppLaunchBrowser");
                        Logger.out("Protocol", "here is the module handle:::" +modHandle);
                        final ApplicationDescriptor[] apDes = CodeModuleManager.getApplicationDescriptors(modHandle);
    //                  final String[] arguments = new String[1];
                        final ApplicationDescriptor appDescriptor = new ApplicationDescriptor(apDes[0], new String[]{});
                        Logger.out("Protocol", "here is the app descriptor:::" +appDescriptor);
                        try {
                            final int appCode = ApplicationManager.getApplicationManager().runApplication(appDescriptor, true);
                            Logger.out("Protocol", "here is the app code:::" +appCode);
                        } catch (ApplicationManagerException e) {
                            // TODO Auto-generated catch block
                            e.printStackTrace();
                        }
         }
            return this;
        }
    

    And I am creating alternative entry point in the application class and using as below:

    public class AppLaunch extends UiApplication{
        public static void main(String args[])
        {
            Logger.out("AppLaunch", args+"length of the arguments::::" +args.length);
            if((args != null) && (args.length > 0) && (args[0].equals("background")))
            {
                Logger.out("AppLaunch", "in the alternate entry point");
    //          Logger.out("AppLaunch", args+"length of the arguments::::" +args.length);
                HttpFilterRegistry.registerFilter("www.google.co.in", "com.innominds.ca", false);
    
            }
            else
            {
                Logger.out("AppLaunch", "Inside the Applaunch");
                AppLaunch theApp = new AppLaunch();
                theApp.requestForeground();
                Logger.out("AppLaunch", "created the app launch object");
                theApp.enterEventDispatcher();
    //          Logger.out("AppLaunch", "in the alternate entry point");
    //          HttpFilterRegistry.registerFilter("www.google.co.in", "com.innominds.ca", false);
            }
        }
    
        public AppLaunch()
        {
            checkPermissions();
            showTestScreen();
        }
    
         /**
         * This method showcases the ability to check the current permissions for
         * the application. If the permissions are insufficient, the user will be
         * prompted to increase the level of permissions. You may want to restrict
         * permissions for the ApplicationPermissionsDemo.cod module beforehand in
         * order to demonstrate this sample effectively. This can be done in
         * Options/Advanced Options/Applications/(menu)Modules.Highlight
         * 'ApplicationPermissionsDemo' in the Modules list and select 'Edit
         * Permissions' from the menu.
         */
        private void checkPermissions()
        {
    
            ApplicationPermissionsManager apm = ApplicationPermissionsManager.getInstance();
            ApplicationPermissions original = apm.getApplicationPermissions();
    
            if(original.getPermission(ApplicationPermissions.PERMISSION_BROWSER_FILTER) == ApplicationPermissions.VALUE_ALLOW)
            {
                // All of the necessary permissions are currently available
                return;
            }
    
            ApplicationPermissions permRequest = new ApplicationPermissions();
            permRequest.addPermission(ApplicationPermissions.PERMISSION_BROWSER_FILTER);
    
            boolean acceptance = ApplicationPermissionsManager.getInstance().invokePermissionsRequest(permRequest);
    
            if(acceptance)
            {
                // User has accepted all of the permissions
                return;
            }
            else
            {
    
            }
        }
    
        /**
         * Shows the test screen to allow the user to exercise the application
         * permissions capabilities.
         */
        private void showTestScreen()
        {
            UiApplication.getUiApplication().pushScreen(new AppLaunchScreen());
        }
    }
    

    can someone please help... Sorry for the almost total code display...

    I was finally able to solve this problem. NPE is to come in other methods of recall because I'm implementation of the FilterBaseInterface.

  • Firefox redirects to bing, I despise bing. How to make the default search google (not the address bar search bar redirects to BING when I get anything apart from a url. I would refrain from google.

    As I said on the address bar when you enter a url not to be searched, it uses bing and I despise bing with passion how can I switch it to google.

    Hi J'avous,

    If you are referring to the keyword search that is made from the address bar, just take a glance at article in the Knowledge Base Search the web from the address bar. It will give you all the information you need to go back to Google.

    If you are having problems with the search bar, bar this article will be useful.

    Hope this helps!

  • Get Windows 7 from one computer to the other.

    I installed and activated a new copy ot 8 windows on a new computer, I built for the games, but W8 wouldn't some of the games.  The same games work well with windows 7.  Can I remove the installation of Windows 8 and install windows 7 in "swopper" on a 2nd computer on which I would then Setup the windows 8?  That is to say, I have an active windows 7 I would delete a computer and install it on the new.  Would be - this will then be allowed to activate?  Thanks for your help.

    If Windows 7 or Windows 8 comes preinstalled with any one of these computers, you cannot move the license.

    Versions of Windows OEM 7/8 are identical to the versions commercial full license with the following exception:

    -OEM versions don't offer any free direct support from Microsoft technical support Microsoft

    -OEM Licenses are tied to the computer first you install and activate it on

    -OEM versions allow all hardware upgrades except for an upgrade to a different model motherboard

    -OEM versions does not move directly from an older Windows operating system

    ---------------------------

  • Why do I get a message from outlook express at the end of it, he said: Yes, socket 11001 error. Error 0x800ccc0d number

    When I try to access on exit express, it appears.

    Errors

    The host 'pop.att.net.' is not found. Please check that you have enerted the server name correctly.

    Account. 'pop.att.net '. Server: 'pop.att.net '. Protocol: pop3, port: 995, secure (SSL): Yes, Socket 11001 error,.

    Error number: 0x800ccc0D

    Contact to the & T support to appropriate account settings. Those who are certainly not good.
  • Creating message from Inbox by using the widget

    Hello

    It is possible to create a message in the Inbox of main messages using Blackberry widgets?

    Thank you.

    bert2002

    We do have a list of Message of JavaScript API.  You would have to wrap the existing Java API and use it in your widget.

    It is one of the API on the road map, but just, we have not been able to get it out on the market yet.

  • How to get 2 xml (brother) of the tag even time and merge them

    How to get 2 xml(Sibling tag) content at the same time and merge them and find the value of the result in the indesign file with page number

    As

    account <>

    < a > This is a text < /A >

    a-123 < B > < /B >

    < / documents >

    First of all, we need to tag A and B value as:

    It is a text - a-123 and then get this form of text from indesign doc page number

    Help, please

    Try this,

    var root = app.activeDocument.xmlElements[0];
    var aTag = root.evaluateXPathExpression("//Record/A");
    var bTag = root.evaluateXPathExpression("//Record/B");
    for(i=0; i
    

    Vandy

  • LinkButton access the list of URLS in the xml file

    Hello

    I have a list of URLS in an external xml file.  When my linkbutton is clicked, I want a new tab to open with the URL of the xml file.  I don't know how to save the xml file in my mxml component so that I am able to reference the URL in the xml file.

    This is how my xml is formatted:


    < xml >
    < link > http://www.Google.com < / link >
    < / xml >

    This is what my linkbutton code looks like:

    < mx:itemRenderer >
    < mx:Component >
    < mx:LinkButton label = "hyperlink" textDecoration = "underline" color = "#FF9900" fontSize = "11" / >
    < / mx:Component >
    < / mx:itemRenderer >

    Thank you!

    What other data would be displayed? The number of columns? All this will be in the xml file. You do not have to display the url in a column, but it must be linked with data from other columns. Thus, when you click on this line, the url is available from the itemClick Manager and open the link.

    Here's some code I've used; I've cut out a lot of things specific to my application, so you can get an error or two, but that's how you can get started:

    XML data file *.


      http://www.Google.com"target ="_blank"/ >
      http://www.Microsoft.com"target ="_blank"/ >
      http://www.Adobe.com"target ="_blank"/ >

    application *.

    Script block *.


    manage the results of service:
    public void linksServiceResult(event:ResultEvent):void {}
    linksxml = event.result as XML;
    }

    public void gotoLink(event:ListEvent):void {}
    navigateToURL (new URLRequest (dgLinks.dataProvider [event.rowIndex] .@url), '_blank');
    }

    ******* UI ************


     
      
        
         
           {data.@description}"/ >}
         

        
      
      

      
     

  • Typing a wrong URL in the URL from Firefox 31.0 bar redirects me to us.yhs4 yahoo com search that displays the LAVASOFT logo. It is not the case with any of my

    Typing a wrong URL in the URL from Firefox 31.0 bar redirects me to us.yhs4 yahoo com search that displays the LAVASOFT logo. It is not the case with any of my other browsers (IE, Chrome, Opera, Safari). So this cannot be a problem ISP as shown in all current references to Firefox.
    This problem started after I uninstalled adaware from LAVASOFT. It itself instead of uninstall. Thus, it is malware behavior while LAVASOFT is pretending to protect against malware.
    Nevertheless, I would like to know how to get rid of this annoying 404 redirect hijack. My home page is about to startpage com, my default search engine is startpage com, all references to Lavasoft and adaware have been removed by subject: config and Windows registry...
    How to get rid of this spam redirect, please?

    Click Tools > Options, then general tab

    In the home page box, type the url you want to fire fox opens by default when you start the browser.

    KhalidXpert

  • How to get a URL of the video

    When I design my site, asks me to enter a URL of the video at any time am sent a video. How can I get a URL to a video/film/from my computer? (No Youtube Video)

    Hello

    I suggest you post your query on the MSDN forums to get help:

    https://social.msdn.Microsoft.com/forums/en-us/home

    It will be useful.

  • Get specific information from XML using PLSQL

    Hi friends,

    XML entry

    ' <? XML version = "1.0" encoding = "UTF-8"? >

    < major >

    < minor >

    < > 12345 line_id < / line_id >

    < service_Line >

    < > 1111 line_id < / line_id >

    < product_id 56789 > < / product_id >

    < / service_Line >

    < service_Line >

    < > 22222 line_id < / line_id >

    < / service_Line >

    < service_Line >

    < > 3333 line_id < / line_id >

    < > 23456 product_id < / product_id >

    < > 999999 product_id < / product_id >

    < / service_Line >

    < service_Line >

    < > 4444 line_id < / line_id >

    < / service_Line >

    < / minor >

    < service_Line >

    < > 5555 line_id < / line_id >

    < > 666666 product_id < / product_id >

    < > 121212 product_id < / product_id >

    < / service_Line >

    < service_Line >

    < > 5555 line_id < / line_id >

    < / service_Line >

    < / major >

    `

    from the above XML code

    I want the line_id and the Product_id of the tag service_line and ignore the line_id in the tag of service_line that does not product_id

    so I need the information below

    Service_line

    product_id

    1111

    56789

    3333

    23456

    3333

    999999

    5555

    666666

    5555

    121212

    Or as

    Service line - 1111

    Product_id - 56789

    Service - line 3333

    Product_id -23456

    Product_id - 999999

    Service - line 5555

    Product_id -666666

    Product_id - 121212'

    Oracle version:

    PL/SQL Release 11.2.0.3.0 - Production

    Thanks in advance

    Come on... I have already answered here: Re: Re: parsing XML and get the required data only PLSQL using

    Please stay focused

    select x.*
    from xmltable(
           xmlnamespaces(default 'urn:xyz:ccw:config:common:data')
         , 'for $i in //serviceLine
              , $j in $i/coveredProduct
            return element r {
              $i/lineId
            , $j/childProductLineId
            }'
           passing v_xml_response
           columns seq_id for ordinality
                 , child_product_line_id  number path 'childProductLineId'
                 , service_line_id        number path 'lineId'
         ) x ;
    
  • Have set up my own domain and linked to my portfolio but I get an error message when I type the URL, y at - it somewhere I need to "publish" the site?

    Have set up my own domain and linked to my portfolio but I get an error message when I type the URL, y at - it somewhere I need to "publish" the site?

    To all those who have suffered from this problem of background, there is a "Publish" button down green...

  • Get the Url of the .swf file browser

    Hello!

    Quick question... I need to get the url of a SWF embeded html browser.

    If the url of the browser is "http://www.mysite.com/stuff/myHtml.html? '. ln = en", I need to access it through my swf file in order to find the value of the parameter of ln (language). Any suggestions?...

    Thank you

    a swf file can get its own url, which won't help when the query string is added to the built-in xml file.

    You can use:

    function urlF() {}
    return location.href;
    }

  • Huawei P9 - I have many issues with getting my pictures from the phone to my Imac

    Huawei P9 - I have many issues with getting my pictures from the phone to iphoto on my Mac.

    Before the summer I bought a Huawei P9 phone, I can easily see the photos on the phone - I can't just them on my mac.  When I connect via a USB cable, it refuses my permissions.

    I try to use my Google account to view on the Mac and move the iPhoto - I can't work either! I can see them, I can't move them!

    I'm pulling my hair out and I have enough to do with! Help, please...

    Jim Hosking

    You need the phone provider support - there is a problem with the way their phone works and how to use it and has nothing to do with the Photos or iPhoto - if pictures is consistent with standards of good Photos and iPhoto won't work with it

    You may need special third party software for your phone load in Photos or iPhoto

    LN

  • I need the URL for the default home page so I can put it in my homepage protection, because all I get when I open the browser's "about"white."

    I'm going to hell to get just the URL for the browser/Firefox start page. I just did a recovery image factory and all I get after downloading and installing the Firefox browser a tab that says 'about white." I don't get the URL in the address bar so that I can put this URL in my homepage of protection (I use Advanced System Care ultimate). Once I get this URL and place it in the area of protection of homepage of my security software, I'll be ready to go, because I want to use Firefox as my default browser. I searched the frequently asked questions and asked the question in every way that I know, in English, and there seems to be no one there who can tell me just the URL of the start page. While I do not understand why it is so hard to get, I certainly need and would be grateful for a solution to this problem.

    It is actually called Subject: Home , but the only way to know would be if you were viewing the page and called to the top of the Page Info dialog... who, for future reference you can get using one of these methods:

    • Right click on a box empty page and select View Page Info
    • (menu bar) Tools > Page Info
    • Click on the globe or padlock icon in the address bar > more information

Maybe you are looking for