Cannot parse Yahoo search results XML

I am trying to create an application that will query yahoo and return XML to parse and display on the screen. For some reason I cannot parse the XML. I have done it this way before, but for some reason it is not working now. Does anyone have any idea how to get this to work?
When I debug the data I can see the XML values in the searchXML object, but I cannot retrieve them. I have attached the XML that is returned. It appears to be messing up with I copy and paste it from IE into a file.
Also I have removed my appId from this application.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    import mx.core.IUIComponent;
    import mx.collections.XMLListCollection;
    [Bindable]
    private var searchURL:String = "";
    [Bindable]
    private var searchXML:XML = new XML();
    private function send_data():void
        searchURL ="http://boss.yahooapis.com/ysearch/web/v1/"+searchTerm.text+"?appid=APPID&format=xml";
        var str:String = searchURL;
        userRequest.send();
    private function resultHandler(event:ResultEvent):void
        searchXML = event.result as XML;
        dgUserRequest.dataProvider =searchXML.resultset_web;
    ]]>
    </mx:Script>
    <mx:HTTPService id="userRequest" url="{searchURL}" method="POST" result="resultHandler(event)" resultFormat="e4x"/>
    <!--http://boss.yahooapis.com/ysearch/web/v1/foo?appid=ApPID&format=xml-->
    <mx:VBox>
        <mx:Label text="Enter Search Term" />
        <mx:TextInput id="searchTerm" />
        <mx:Button id="submit" label="Submit" click="send_data()"/>
        <mx:Label text="{searchURL}"/>
        <mx:Label id="thislabel" text="{searchXML.@responsecode}"/>
        <mx:Label text="{searchXML.resultset_web.@count}"/>
        <mx:DataGrid id="dgUserRequest" >
            <mx:columns>
                <mx:DataGridColumn dataField="abstract" headerText="About" width="300"/>
                <mx:DataGridColumn dataField="clickurl" headerText="URL" width="300"/>
            </mx:columns>
        </mx:DataGrid>
    </mx:VBox>
    </mx:Application>

Thanks for your help, but I have found a much easier way to do what I was trying to do. Yahoo comes with a search API built specifically for Flex http://developer.yahoo.com/flash/tutorials/as3/search.html

Similar Messages

  • Cannot parse ejb-j2ee-engine.xml

    During installation of XI3.0 I get this error in the "Online deployment adapter framwork". Has anyone else seen this error? Here's the complete error:
    Error: Aborted: development component 'com.sap.xi.mdt'/'sap.com'/'SAP AG'/'3.0.20040129102613.0000':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application sap.com/com.sap.xi.mdt..
    Reason: Cannot parse ejb-j2ee-engine.xml.; nested exception is:
            com.sap.engine.services.ejb.exceptions.deployment.EJBXMLParserException: Cannot parse ejb-j2ee-engine.xml.
    Any help will be apreciated!

    Hello Dankertsen
    This is a standard error in SAP XML Deployment file, you need to check the file ejb-j2ee-engine.xml if it starts with a space (first line) you must remove it and then update the file aii_mdt_bean.jar. and then retry again.
    Hope this will help.
    Regards,
    M. Zehana

  • Yahoo search results problem

    We have two BM servers here. Older one Netware 6 sp5 w/ BM 3.7 sp3 that works well. A replacement that I have had up but not currently using much Netware 6.5 SP8 w/ BM 3.8 sp5. The latter one has a problem with Yahoo search results. If I point a workstation to the older NW6 BM it works fine in Bing, Google & Yahoo. If I point it to the NW6.5 BM then it will work fine in Bing and Google but in Yahoo it will return the results but when you click on any link there I get this message:
    Yahoo!
    Yahoo! - Help
    The requested URL was not found on this server.
    Please check the URL for proper spelling and capitalization. If you're having trouble locating a destination on Yahoo!, try visiting the Yahoo! home page or look through a list of Yahoo!'s online services. Also, you may find what you're looking for if you try searching below.
    Any ideas? I have no access rules enforced. Anything that might be of help would be greatly appreciated.....Thank you!

    I think this probably should be moved to the proxy portion of the forum - I am going to close this and start a new thread there. Sorry.....

  • Wyy won't firefox take me DIRECTLY to website? Instead it takes me to the yahoo search results and I have to click on the site. Very frustrating. Any ideas on how to change?

    Can't get directly to website. When I enter address, firefox takes me to yahoo search results for the site

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Cannot open Yahoo searches in a new tab

    When I do a Yahoo search and attempt to open a search result in a new tab, I get "You have chosen to open and application/octet-stream" and it opens an "Untitled" tab.
    I can avoid this error by simply clicking on the search result in the same window.
    This has just started in the past two days and is generally Yahoo specific. I don't have this problem with Google, but I don't normally use Google.
    Similar Mozilla error have been reported in the past, but not exactly like this error.
    No recent or significant changes in my OS or PC configuration

    In my case it was the greasemonkey addon. Once i've desable it, everything went right. Thanks for that hint!

  • Cannot open Google search results in tab\same window\new window

    Google search results are not opening in the new tab\same window\new window.<br />
    It is happening only in Firefox, Internet explorer. It is working fine in chrome.<br />
    I have tried many solutions like<br />
    1. cleared cache, history,everything from browser's, still no result.<br />
    2. opened in safe mode, no result.<br />
    3. unchecked hardware acceleration, still no result.<br />
    4. Other search engines it is working fine, only problem with Google search engine.<br />
    5. Tried changing my DNS (Google open DNS, others), no result.<br />
    6. Checked with antivirus blocking, nothing is blocking.<br />
    7. Reinstalled browsers(Firefox, explorer) no result.<br />
    8. Tried with different versions of browsers, including the latest updates ( Firefox,explorer), no result.<br />
    9. while disabling Java in about:config it is working in Firefox.<br />
    Please help me on this issue.<br />
    Thanks in advance.

    Google normally routs the result link to their safe browsing testing service via an onmousedown event that modifies the link (href attribute) if you click it once.
    You can check if this bookmarklet makes a difference:
    <pre><nowiki>javascript:(function(){var e=document.querySelectorAll('#search a[onmousedown]'),E,i;for(i=0;E=e[i];i++){E.removeAttribute('onmousedown')}})()</nowiki></pre>
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    *https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware

  • Cannot parse UTF-8 encoded xml files

    I have been having issues parsing files that were encoded with UTF-8. If I save the file as standard ANSI and parse it I do not have the issues.
    Is there a reason this can occur?
    Here is the error I am getting:
    C:\Home\Java\testbed\tmp>java RFKGenerator -in 4874.xml -xsl cl_rfk.xsl -out 4874.rfk
    Applying stylesheet cl_rfk.xsl...
    Exception in thread "main" ; SystemID: file:///C:/Home/Java/testbed/tmp/2.209_M_
    4874.xml; Line#: 1; Column#: -1
    javax.xml.transform.TransformerException: Document root element is missing.
    at org.apache.xalan.transformer.TransformerImpl.fatalError(Unknown Sourc
    e)
    at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source
    at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source
    at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source
    at gov.nasa.jsc.odfxml.java.RFKGenerator.main(RFKGenerator.java:89)
    As I mentioned before this only occurs if the file is encoded in UTF-8 so I am not sure if there is any extra steps needed when parsing these type of files. I am using the latest xalan parser and the xerces processor that apache provides.
    If you need any other information please let me know.
    thank you.

    I found that the issue was I was using an older version of Xalan and when updated it fixed the problem. Also there are issues with parsing UTF-8 on win9x machines you should be on Win2k/XP to not encounter errors.

  • Cannot display custom search result to Public user

    I use the custom search portlet with auto query. When I log in to the portal, I can see the result. When I do not log into the portal, I do not see the result. The page is displayed fine, only this portlet is not displayed. Is there some setting I need to do?
    Can someone help?
    Thanks in advance,
    John

    John,
    Yes I tried searching just the page group where the items are located but they were not found.
    The page is public, with no security at item level.
    I have now detached the template from the content page, re-applied Make Public to the page and the search works.
    The access on the Template was Display Page to Public and Enable Item Level Security, with ORCLADMIN user Manage access.
    I would like to use templates, as we need a consistent look and navigation, so let me know if you have any idea's where I have gone wrong, or if this is a bug.
    Thanks,
    Brenda

  • Why on earth am I getting Yahoo coming up on search results - I don't want it!!! Change this madness

    I have found a way using about:config to remove and put back to Google, however nothing has changed. From researching it seems that this is something that we have had no choice about, you have made yahoo an embedded article within Firefox - this is outrageous and totally unwanted by myself and many others - you should be ashamed - Yahoo even tells me that it has not authorised Hotmail or Google when I try and login into my hotmail and I have to get around that after being warned it might be harmful - I am livid with you guys, I have used Firefox for years and am astounded at this cheek! Change it back so we have a choice, meantime I am deinstalling Firefox, a trusted browser for years :(

    Thanks for the response. I am 100% I only downloaded Firefox via Mozilla and I make sure every time that I check off any boxes that offer to give me Ask, Bing, Yahoo or any of those.
    This link gives the exact issue and how to resolve, however, it has not solved it for me and Firefox still reverts to Yahoo search results.
    This is not good!
    http://tech.gaeatimes.com/index.php/archive/how-to-change-your-firefox-location-bar-search-engine/

  • Cannot parse persistent.xml storage.xml... null pointer exception

    hi,
    i have an EAR with a WAR and an EJB jar. i only have session beans. no entity beans. my EJB jar does not have a persistent.xml or storage.xml. i build my EAR using ant and deploy using visual administrator (thanks to Vladimir Pavlov). i get this huge stack that says
    "com.sap.engine.deploy.exceptions.BaseIOException: Cannot parse persistent.xml or storage.xml for JAR F:\usr\sap\J2E\JC00\j2ee\admin\.\temp\deploying\deploy_temp\reader1115328611113\tap-ejb.jar.
    Reason: java.lang.NullPointerException."
    i get this only when i have <security-permission> in the ejb-j2ee-engine.xml. does this tag need one of these files. the application deploys just fine if i dont have the <security-permission>. i need to map the users to the roles in the application for EJBs.
    can someone please tell me what is happening here.
    thanks
    - RD

    It is not only with Deploy tool and visual admin tool. i tried the console too. gave me an error saying "cannot parse ejb-j2ee-engine.xml". it did not mention the persistent.xml or storage.xml though.
    i checked the validity of the xml with the dtd using altova xml spy. it passed.
    can you please tell me how I report an OSS message?
    thanks
    - RD

  • How do i remove yahoo search?

    Despite having spent several hours searching fruitlessly on the internet, I still cannot find a quick and simple fix for removing Yahoo as the default Firefox search engine. I do not want rubbishy Yahoo search results. I want to use Google, and if Mozilla Firefox won't let me remove the Yahoo default and nominate Google, then I will walk away and use a different web browser.
    There is no simple way to dump Yahoo as the default searcher on Firefox 25.0.1. There is no 'search engine preference' tab in the Firefox drop-down tab, and Yahoo does not show up in the add-ons or extensions list. Nor can I change settings in about:config in the browser.newtab.url line. It is almost as if Mozilla is making it impossibly hard for users to chose which search engine they want.
    If Mozilla want to make users use Yahoo then they should clearly state that this when they install Firefox software. I do not like being manipulated in such a cynical way.
    If anyone can show me how to easily change my settings so that Google becomes my default search engine then I will be grateful. Thanks in advance.

    Hey guys, so I fixed the issue I was having by uninstalling a program called '''"Search Protection" by Spigot, Inc.''' The user above named '''carlos_danger''' had the same issue as me. I installed uTorrent and after that my search engine for Firefox was set to Yahoo and would NOT change to Google, even after trying the about:config trick.
    When I read that it could be some form of malware, I went to add/remove programs and sorted them by most recently installed. It was there that I noticed this "Search Protection" program and knew immediately that it was the problem. After uninstalling that, I went back into Firefox and deleted the Yahoo search (and all other searches besides Google) from my search providers.
    I think it's really scummy for developers to hide malware like that in their installers. It really frustrated me because Yahoo search results are absolutely terrible and I would have rather switched to a different browser than use them. Unfortunately, I think this "Search Protection" by Spigot, Inc. infects all of your browsers, as the same thing happened in Chrome.
    Anyway, go to your add/remove programs, sort by install date (most recent at the top), and look for any oddly named programs that may or may not have something to do with "search".
    I have attached an image below of the application I removed.
    Hope this helps.

  • When clicked on Yahoo weather icon, Safari default search changes to Yahoo search. Would there be a fix for this?

    Hi Apple,
       When I click on the Yahoo icon on weather app, it takes to safari as expected, but it changes the search engine to Yahoo (i have to go back to settings and change the search back to google). This for me is a usability issue. Do you have this issue in pipeline to be fixed?
    Thanks,
    Aditya

    I'm not getting that behaviour at all.  It looks a bit like it's changed to Yahoo because you get a Yahoo search box in the webpage and it says "Yahoo search results..." at the top, but the search box within Safari is still Google.

  • How do I get rid of the yahoo search from firefox?

    I use windows and firefox but when I type in a search a new tab opens with yahoo search results?

    Hello.
    In order to change your Firefox Configuration please do the following steps :
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''' to continue to the about:config page.
    # In search bar, type: '''''browser.search.selectedEngine '''''
    # Click PPM on value, click Reset
    # Click PPM on value, click Modify and type: '''''Google'''''
    Please post back with your results, we are happy to help.

  • New Yahoo Search Changes

    I have always used Yahoo search; while Firefox had Google as the default, I would change it to Yahoo. I would sometimes try google but one of the things that annoyed me with Google was if you clicked on a link, that link would, by default, open on the same page forcing you to "go back" to see the list again. With Yahoo OTOH clicking on a link would always open in a new tab allowing me to more easily go back and forth between selected links.
    Yes I know I can right click and open in a new tab but is there any way to get the old default behavior back where a normal left click on the Yahoo search results open in a new tab ? I have a condition which affects my right hand and using the right click button can sometimes be gets cumbersome at times.

    It didn't work at first, but eventually got there.
    1. Your screenshot shows the method of selecting Yahoo as the default search provider. There is no option to "remove". I select Firefox Help and underneath uncheck Yahoo and all other providers and then set it as default.
    2. I then go to search.yahoo.com and try a search. It does work the way I wanted.... for whatever reason it wouldn't yesterday.
    3. I go to Go to http://mycroftproject.com/yahoo-search-plugins.html , scrolled down to 16. Major Engines , Yahoo! en-WW (search.yahoo.com) by Denny Kluge. This was what I had to do when Firefox 1st changed the default to Google.
    4. I added it and had two Yahoo's in the list, I checked the 2nd one. Add something in the search windows, hit the down arrow and elected Yahoo to search with. It didn't work, same behavior as before.
    5. I then changed to selecting Yahoo again as the default.
    6. Now here's the weird part .....
    a) With Yahoo selected as the default and letting it work as the default, it works as desired.
    b) With Yahoo selected as the default, but using the Yahoo selection as an option, it doesn't work.
    I have since unchecked the Yahoo box in the list of "alternate search engines to display " while leaving it selected as the default selection. It's worked 3 times so far; hopefully it survives a close and reopen :)
    Muchos Grassyass. I dreaded trying to find the mycroft site again as it took me quite a while the last time.

  • Proxy problem with Yahoo search returned links

    We have two BM servers here. Older one Netware 6 sp5 w/ BM 3.7 sp3 that works well. A replacement that I have had up but not currently using much Netware 6.5 SP8 w/ BM 3.8 sp5. The latter one has a problem with Yahoo search results. If I point a workstation to the older NW6 BM it works fine in Bing, Google & Yahoo. If I point it to the NW6.5 BM then it will work fine in Bing and Google but in Yahoo it will return the results but when you click on any link there I get this message:
    Yahoo!
    Yahoo! - Help
    The requested URL was not found on this server.
    Please check the URL for proper spelling and capitalization. If you're having trouble locating a destination on Yahoo!, try visiting the Yahoo! home page or look through a list of Yahoo!'s online services. Also, you may find what you're looking for if you try searching below.
    Any ideas? I have no access rules enforced. Anything that might be of help would be greatly appreciated.....Thank you!

    On 03/10/2014 09:56 PM, jpeteet wrote:
    >
    > Mysterious;2310138 Wrote:
    >> On 03/07/2014 09:06 PM, jpeteet wrote:
    >>>
    >>> We have two BM servers here. Older one Netware 6 sp5 w/ BM 3.7 sp3
    >> that
    >>> works well. A replacement that I have had up but not currently using
    >>> much Netware 6.5 SP8 w/ BM 3.8 sp5. The latter one has a problem with
    >>> Yahoo search results. If I point a workstation to the older NW6 BM it
    >>> works fine in Bing, Google & Yahoo. If I point it to the NW6.5 BM
    >> then
    >>> it will work fine in Bing and Google but in Yahoo it will return the
    >>> results but when you click on any link there I get this message:
    >>>
    >>>
    >>> Yahoo!
    >>> Yahoo! - Help
    >>>
    >>>
    >>> The requested URL was not found on this server.
    >>>
    >>> Please check the URL for proper spelling and capitalization. If
    >> you're
    >>> having trouble locating a destination on Yahoo!, try visiting the
    >> Yahoo!
    >>> home page or look through a list of Yahoo!'s online services. Also,
    >> you
    >>> may find what you're looking for if you try searching below.
    >>>
    >>>
    >>> Any ideas? I have no access rules enforced. Anything that might be of
    >>> help would be greatly appreciated.....Thank you!
    >>>
    >>>
    >>
    >> 1. Verify that you use the same proxy.cfg on both servers and the same
    >> settings like persistent connections.
    >> 2. Take a lan trace on the 3.7 when hitting the yahoo url and a lan
    >> trace on the 3.8 doing the same action and compare the differences.
    >
    > I am still trying to make sense of the Wireshark output. I can see where
    > I get the HTTP/1.0 403 Forbidden. What is happening upon further
    > inspection is when I click on a link returned from a yahoo search it
    > actually takes me to a link that always starts
    > "http://r.search.yahoo.com/.......blah blah blah. But If I go to the
    > newly opened tab (in IE) and add 's' to the HTTP address and hit enter
    > - the link works. Maybe that will help. This happens whether or not I
    > have "enforce access rules" checked.....
    >
    >
    1. Verify that you use the same proxy.cfg on both servers and the same
    settings like persistent connections.
    2. Compare both traces, the working one and the non working one. See if
    the returned link from yahoo is the same on both traces and it is coming
    from the same server. You may have another firewall/router up in the
    path causing the issue.
    3. Before taking the lan traces on the netware server using pktscan.nlm,
    unload proxy, load proxy -cc to clear cache. Then take the traces and
    see at what point the non working one differs from the working one.
    check that info is coming from the same up server

Maybe you are looking for

  • Printing grayscale by default in the HP LJ 500 color MFP M570dw

    Hello! Help me please, tell me how i can set by default for this printer printing grayscale? I have mac os, and windows, but in the driver settings i don't see this tick. And i need choose printing grayscale every time when i printing from any applic

  • Assign search help to a field in PCUI

    Hi Friends, Here is my requirement. I have designed a PCUI application which searches the address based on the post code entered. Now the standard method to assign this application as search help is to specify the name of the application in the "inpu

  • How to fill out Forms on iPad?

    I have created a form with text boxes and drop downs to submit.  This form is primarily for use on ipads.  1)  will it work on iPads? 2) what reader/app is best to use? Thanks! Lance

  • Two different document types in MIRO

    Hi Gurus, Can we have two different FI document types in MIRO for Service PO and Normal PO? Standard is RE but we want one more. Can you please suggest something? Regards,

  • Reading strings

    Hello Abapers, This is the issue: I'm need logic for the following: let's say I have product# 00000TA12345 I need to get only: TA12345 but if the product starts with a number, let's say:  0000056789, I need to get the same: 0000056789. How can I hand