Cannot open a simple XML file.

Hello

This has probably been answered, but the search bar in the forum seems to be broken, so I couldn't get him.

I tried to open a file xml with a simple application:

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >
< fx:Script >
<! [CDATA]
Import mx.rpc.events.FaultEvent;
Import mx.rpc.events.InvokeEvent;
Import mx.rpc.events.ResultEvent;

protected function srv_resultHandler(event:ResultEvent):void
{trace ("result") ;}

protected function srv_invokeHandler(event:InvokeEvent):void
{trace ("invoke") ;}

protected function srv_faultHandler(event:FaultEvent):void
{trace ("fault") ;}

protected function button1_clickHandler(event:MouseEvent):void
{trace ("breakpoint");    }

[]] >
< / fx:Script >
< fx:Declarations >
< s:HTTPService id = "srv" url = "data.xml"
result = "srv_resultHandler (Event)" "
Invoke = "srv_invokeHandler (Event)" "
Fault = "srv_faultHandler (Event)" / >
< / fx:Declarations >

< s:Button click = "button1_clickHandler (event)" / >
< / s:Application >

The HTTPService gives me nothing; any error, no cases of success, no invoke. When I freeze the program and look at the "srv", it does not seem to contain any thing useful, like whether to take data from.

The "Data.xml" is both in the src folder and parent his folder, and it looks like this:

<? XML version = "1.0" encoding = "utf-8"? >
< root >
< chart >
< Game >
< x >/< x > 1
< a > 1 / < y >
< / set >
< Game >
< x > 2 / < x >
< y > 4 / < y >
< / set >
< / chart >
< / root >

Why does this work?

Hello

I can't see in your code you are using srv.send ().

Try calling srv.send () on the creation complete event handler to load the xml file.

Tags: Flex

Similar Questions

  • When I try to get on IE or Chrome or any web show I get a message saying 'Paint' cannot open this type of file

    I have windows turns on, but when I try to access a browser it has a message for me that "Painting" cannot open this type of file... Even when I try to get on a web view... Even some of my icons resemble small paint pads. Really weird and I make a living on my PC so I don't know what to do. I tried to recover, and he said the same thing... When I go on FB it says I need to update my browsers and it wont let me update all the. I can't really do anything without this message coming... Now, I just got a message from windows Security Center that will not start security... It has to do with a bitmap file

    Looks like you have somehow your file types of website related ('open with') the Paint program.  I couldn't begin to guess how this happened, but here's how to fix this:

    Use the search box to find and open the settings to "Default programs", then scroll down and click "Choose default app settings.  Which opens the control panel 7-style old instead.  Click on your browser in the list, and then click "Set as default" for re - include all types of possible files that the browser again.

  • Cannot find the config.xml file

    Hi all

    I searched the forum and google my problem with no luck.  I hope someone here can help me.

    On my Windows XP VM, I try to use Packager WebWorks to compile a file to archive.  Whenever I do, I get "archive invalid - cannot find the file config.xml.  Of course, my zip file has a config.xml file.

    While trying to fix it myself, I downloaded the sketchpadStandard.zip of the sample and could only compile without error.  I extracted the file and re-compressed it and got the error "cannot find the config.xml file.  I used the utility of windows XP, I downloaded winzip and used this utility, I used my mac to compress the file.  Whenever * I * do, I get the error.

    Obviously, package manager works, and I'm in the right directory that I'm able to compile the provided sample Archives, but why the hell can not compile the VERY SAME FILES I checked myself?

    Any thoughts much appreciated.

    After several hours of experimentation, I finally load the mac version of the SDK directly on my mac, rather than the version of windows on my virtual Windows machine.  I did the fix here would solve the same problem on a mac and it worked.

  • Have windows 7 installed and office 2007. Cannot open the old excel files. Error reading .xlsx is not a valid Win32 application

    Have a new laptop with Windows 7. Responsible for Office 2007. Cannot open the old Excel files. Get the error reading .xlsx is not a valid Win32 application when I try to open the file.

    Right-click on the Xlsx file and select open with.  Then find Excel and make sure that it is selected to always open with this program.  Click OK, and then see if it works

  • Cannot open the RAMDISK IMAGE file MINIPE\WIPE.IS_ CAN NOT BE LOAD error Code is 7

    HELP PLEASE

    I forgot my windows password 8 Pro. Tried several programs Freeware - different product Code to these Apps - no work!

    A reset of password - but is fails (cannot open the RAMDISK IMAGE file MINIPE\WIPE.IS_ CAN NOT BE LOAD error Code is 7)?

    Do I have to buy a soft reset? Buy new Microsoft product key?

    I read somewhere that I can use regedit (run as administrator), but have no details. I thank all of you for your help since. I would really appreciate help with this or I'm screwed.

    Thanks again

    Hippie TOKE

    Hey Hippie,

    Microsoft technical support engineers cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features.

    Please click the link mentioned below on Microsoft Policy all lost or forgotten the password.

    http://support.Microsoft.com/kb/189126/en-us

    Answer please if you have any questions.

  • My recipient Receive the answer that the file I sent is not available or that they cannot open all of the files that I send.

    My recipient Receive the answer that the file I sent is not available or that they cannot open all of the files that I send.  I have not had this problem in the previous version of Adobe send.

    We have seen this happen when the link you send is broken up in the recipient's email.

    Using anonymous or custom links? Anonymous, how you send the link to your recipient?

    If your recipient send the link to you, can you open the file it?

  • I upgraded to a new computer with Yosemite, after have migrated my settings on, Dreamweaver CS 5.5 will not launch. It says it cannot find the menus.xml file, then the problem is getting worse.

    I upgraded to a new computer with Yosemite, after have migrated my settings on. Adobe CS5.5 works very well except Dreamweaver CS 5.5, it says it cannot locate the menus.xml file and cannot rebuild from a backup. He suggested resettlement.

    But when I try to reinstall, I get an error that says "Installer failed to initialize. Please download adobe support advisor to detect the problem.

    Who produces the net problem of it being abandoned, and that brought me here. Help!

    This is a duplicate thread.

    DW CS5.5 and Yosemite [subject edited by Moderator]

    Ultimately, the problem has been resolved by running the cleanup CC tools then by reinstalling the software.

    Nancy O.

  • Cannot open or create the file... Permission denied

    I am a new user of LC Designer ES.  After creating and saving a form, I made changes and now cannot save.  Error message in the log report palette tab says "PDF generated successfully.  Cannot open or create the file [file name] permission denied. "No idea why this would happen and how to fix it?

    Thanks for any help.

    If the file is already opened in another application (such as Acrobat or Reader) then you wodul not being able to save as these apps put a lock on the form.

    Paul

  • Displays Windows cannot open .exe and .encre file extensions.

    I just downloaded codecs on a website affiliated to microsoft.  I decided to remove this program and my desktop icons went, including shortcut icons.  Double click on these icons got me the message "Windows cannot open this file".  Then displays a folder on my desktop more Winxp32.  Great, now my whole OS is on the desktop in a folder and I can't open any file.  I have since run REGEDIT. EXE and am waiting for additional help in our community... God bless my friends and what you believe in... ME

    A restore of the system at a time until your problem should solve your problem.  Since you can not click on shortcuts to start programs, you may need to start restoring the system in accordance with the following article:

    "How to start the System Restore tool by using the option of safe mode with the command prompt in Windows XP"
      <>http://support.Microsoft.com/kb/304449 >

    HTH,
    JW

  • Cannot open the Windows backup files

    Windows cannot open files or can not read the text because of the encoding.  backup on USB. files are of quickbook software that contain employee files, w2, s will soon and I can't get information.  starteed problem after the update for service pack 2 auto windows.    backup came from computer running xp and downloaded to a laptop with vista yet neither system will open the files.  software filehelper fixed nothing as he claims, money wasted on unnesassary downloads or repaired.  Please what can I do?

    Please repost your question in Forum Windows Update: http://social.answers.microsoft.com/Forums/en-US/vistawu/threads where the people who specialize in Windows update (including SP2) will be more than happy to help you with your problem.

    Since SP2, you have another option. For now, Microsoft Support offers free technical assistance for any issue related to this update at: http://support.microsoft.com/ph/11732#tab0.

    I hope this helps.

    Good luck! Lorien - a - MCSE/MCSA/network + / A +.

  • Microsoft Money 2004 cannot open my previous .mny file after you have reinstalled my PC!

    I used a .mny file with my MS Money 2004 without problems.

    After having reinstalled my PC (Windows XP) and reintall with the same version of money, when I tried to open my file it asks for my password but delivers so the following error (after trying to convert the file!): "money cannot locate 'path\file.mny' or cannot open, possible because this is the file read-only or you are not allowed to change or your hard disk is write protected".

    Needless to say, none of these conditions are met. I tried to restore from a backup file, but the error was just the same.

    His face wit agonizng this kind of problems in Microsoft products.

    Can someone help me please?


    Francisco

    14.0.120.805 is no money 2004 Money 2005, and must be updated to 14.0.120.1105 if your old file is to open.

    Right click on the shortcut to launch the money and select run as administrator. You need an update online at 1105 and this will allow money to install it.

  • Invalid application - cannot find the config.xml file archive

    I'm new to webworks development... I created a sample config.xml and index.html in the folder Helloworld and made a Zip file...

    Then using ripple I packed up the app and the. Cod files are generated correctly...

    But I was not able to pack and sign using ripple, if I had the signature keys added to the bin folder of the SDK correctly...

    So I tried bbwp command line argument to achieve the same... But it has ended up with the error "Invalid application archive - cannot find the file config.xml.

    What is the problem that I do with the archieve file?

    How to use eclipse for development for the Webworks 2.3.1.5 sdk?

    My guess is that you have a HelloWorld inside your zip file and the file config.xml and index.html are inside this folder. The config.xml file must be in the root and must reference the index.html file, wherever it is in the zip directory structure.

  • Cannot open Excel 2010 Maximised file in Windows 7

    Cannot open Excel 2010 files in format Maximised, using Windows 7

    After you resize them, make sure that there are no other open programs, including all minimized in the taskbar and then close the Excel window. The size will not forget if it is the last window closed.

  • PhotoDraw in Windows7 - cannot open or save jpeg files

    I have managed to load Photodraw V2 on my new Windows7 machine, but cannot get the program to open or save jpeg files. I've uninstalled, reinstalled, repaired and added features (graphicthrough the control panel............... but no luck.) Any body can help?

    I've seen the same problem, but it is not related to Windows 7, I had also in Vista.  I followed up to the size of the file.  I can open small JPG images, but I started to have the question when I got a new camera.  Nothing does no more than 8 million pixels open in Photodraw.  I had to open the photo in another program, reduce the image, then it opens.  But that downgrade the photo.  For more pictures, I just had to use another program and not my beloved Photodraw.  I really wish that Microsoft had continued to work on this product because it was great!

  • Photoshop cannot open EM5 II RAW files even with 8.8 ACR?

    I have a subscription Adobe CC so my Photoshop is already the latest version, but when I try to open EM5 II. ORF files, I get message "Photoshop cannot open this file." (see attached screenshot)Screen Shot 2015-04-03 at 3.32.55 AM.jpeg

    EM5 II is already officially supported according to the page Announces Camera Raw 8.8 then why can't Photoshop it open? I thought that there is something wrong with my setup so I downloaded and installed the plugin Camera Raw installation program manually, but the result is always the same.

    I even uninstalled my 2014 of CC in Photoshop using creative cloud and reinstalled, I get just the same message.

    All the other things I can try?

    Thank you. The link is on the same page that has been specified in my original post that I already downloaded and installed before but it didn't work.

    According to the instructions here Troubleshooting Camera Raw | Photoshop I uninstalled Photoshop CC and reinstalled and finally installed the plugin again and finally CameraRAW now it works!

Maybe you are looking for