Access xml files in Cairngorm

Hi all

I create a simple application to access data xml using Cairngorm. I used HTTPService and defined in a file Services.mxml. Now where do I place the xml file and what URL should I put in the HTTPService?

When you create a structure of directories of cairngorm, there are so many directories which is the root folder? Here's my directory structure...

project

bin

Main.swf (I'll run the application in the AIR around here)

libs

CBC

XML

myXML.Xml

company

Services.MXML (here, I defined the HTTPService)

delegates

MyDelegate.as (define an instance of HTTPService here)

events

MyEvent.as

answering machines

orders

MyCommand.as (define the delegate here)

Display

MyView.mxml (event is raised here)

Main.MXML (display is defined here)

I tried to use the url ".» "/ xml/myxml.xml. This gave 'stream error Error #2032.

What should I do here?

Kind regards

SHiVik

Hello

Try the url = xml/myxml.xml

Tags: Flex

Similar Questions

  • I am trying to open a file and make me notice that the required index.xml file is missing. Is it possible to access the file? I don't know why this happened.

    I am trying to open a file in Pages 09 and am getting notice has the required index.xml file is missing. Is it possible for me to access the file? I don't know why this happened.

    You open a file with Pages ' 09 Pages 5.x.

    You need to right-click on the file and open it with Pages 5.x (the one with the orange document icon).

    Peter

  • I receive the "could not sign in you [access denied: 530]." Check your user name and password ' problem on Adobe Muse CC 2014 and I can not access the xml file that is supposed to solve this problem?

    I am a PC user and I have Adobe Creative Cloud Muse 2014. I received the "could not sign in you [access denied: 530]." Check your username and password "error. trying to download my muse to my ftp, GoDaddy host site I did it successfully in the past and that recently it has stopped working. I looked online at the Adobe Muse Help FAQ | Download a Site from Muse Adobe on a third-party hosting service and he said to download the ftpprefs.xml file but this file simply leads to a blank page that says / * not found * / / * not found * /.

    Can you direct me to a page to work with this file, or provide an alternative? Thank you!

    Hello

    As you have found the error [access denied: 530] This means that the problem is with access. The user name and password that you enter is incorrect or you don't have the appropriate permissions.

    I suggest you to contact Godaddy to reset the password or reset the permissions.


    Concerning

    Vivek

  • We can access autogen_dimensions.xml file via a URL?

    Hello

    We can access autogen_dimensions.xml file via a URL?

    Is it possible to access the file autogen_dimensions.xml with the URL as shown below.

    http://host:port / < App name > /Data/State/autogen_dimensions.xml file. I want to read this file in my java class.

    Kind regards
    Ravinder P

    Service platform is delivered with 2 copies of the reference application. The folder that you noted is not functional, for reference.

    Who is running is located at:

    \Endeca\PlatformServices\6.1.2\tools\server\webapps\endeca_jspref

    You should be able to just drag the files in there.

  • Permissions.XML of security consistent Access Controller file

    Hello

    I went through the permissions.xml file of security access controller implementation of consistency on the developer's Guide.

    .....
    .....
    < permission >
    < target > cache = common * < / target >
    Join < action > < / action >
    < / authorization >
    .....
    .....

    I would like to know what actions are none other than the join and all ?
    OR is this < action > configured to join and all alone?

    Hello!

    The possible values for the action tag should be: 'create', 'destroy', 'join', 'all', 'all' is a combination of all of the valid actions.

    Take a look at http://download.oracle.com/docs/cd/E18686_01/coh.37/e18683/com/tangosol/net/ClusterPermission.html

    I hope this helps.

    -Cris

  • Cannot access the XML file on localhost.

    Type localhost or 127.0.0.1 in any browser on a Macintosh (os 10.5) does not have access to the host computer.

    The following Actionscript code generates the following error:

    var XMLURL:URLRequest = new URLRequest ("http://localhost/quoteRotator/quotes1.xml");

    Error opening URL ' http://localhost/quoteRotator/quotes1.XML '

    #2044 error: Unhandled IO error...

    How can I access the XML file using Actionscript 3?

    Thanks for your help.

    use:

    var XMLURL:URLRequest = new URLRequest("quotes1.xml");
    
  • 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}"/ >}
         

        
      
      

      
     

  • XML file does not appear if it is a local file and XSLT file is on a server.

    If I have a local XML file with a XSLT file local XML file is displayed as expected. If the two files are on my server again that the XML file is displayed correctly. However if the XML file is local and the XSLT file is on the server (and the XML file points to the file on the server) I get the following error:

    Error loading stylesheet: an unknown error occurred (805303f4)

    Using Firefox on a Mac 41.0.1.

    This problem does not occur on Safari

    No idea where I'm wrong? Research on the web there are suggestions about changing the mime, but'm not 100% sure what to do about it. In

    Thank you

    Brian

    Guigs. Thanks for the information.

    After doing some digging, I found this page:

     http://enable-cors.org/server_apache.html
    

    Following these tips, I added an .htaccess file in the directory on the server that contains my .xslt file, which contains the line:

       Header set Access-Control-Allow-Origin "*"
    

    And that seems to have solved my problem for Firefox!

    Does not seem to solve the problem on Internet Explorer, but suspect it's a problem for another day (and maybe another forum).

  • How to rebuild iTunes Library.xml file?

    My understanding is that the iTunes Library.xml file is used by 3rd party (not iTunes itself) applications to access the metadata on his iTunes library.  I think that my iTunes Library.xml is corrupt.  Two other applications 3rd party who has access to the file produce strange results.   If I quit iTunes, delete the file, then re - start iTunes, iTunes will rebuild the file?  Is there a downside to this?  THX

    pomme4moi wrote:

    If I quit iTunes, delete the file, then re - start iTunes, iTunes will rebuild the file?

    Yes.

    Is there a downside to this?

    N ° this file is rebuilt several times by iTunes, any time something is changed.

    When you switch a song, when you finish a song when you change a side, add/remove the work or words or anything, iTunes will rebuild this file.

  • [Database Toolbox] possibility to Load From xml file in Labview and then in the database

    Before you write in my database, I want to save it and reload if the user wants to cancel the new charge that can last several minutes.

    If he cancels the load I get back my previous database data.

    I managed to save my database in XML through the "DB tools SaveRecordSet To File" VI. This VI records directly contains my database table in the xml file. And finally, I only if the other VI to load file will do the same thing, means load the file and save it in my database but it gives just a recordset in labview.

    Question: is it possible just to load the xml file into the database directly through Labview?

    Why, finally, these screws do not have the same behavior?

    I don't know, but I just thought I would chime, that if you fail to do with LabvIEW, you might want to look by making your writing in a 'Transaction' database, if your DBM takes in charge (most except MS Access)

  • HP Officejet 6700 desktop program installed displays text xml files using

    Afer, install the drivers and the printer software on 64 bit Windows 7 Pro, the shortcut on the desktop and start menu entry "HP Officejet 6700' returns the text for the XML files .  When the icon is first you click a window asked me to choose which installed printer, and then displays the two xml files.  The first file is called 'HPSPProgress' the second 'HPSolutionPortal' using windows Notepad.

    The shortcut pointing to the following text:

    "C:\Program HP HP Officejet Officejet 6700.exe 6700\Bin\HP" - launch UDCDevicePage

    Web and print based access drivers will work perfectly, and the HP Scan program office works very well also. All the functions of the printer work properly. But this program installed a desktop will not work.

    I uninstalled, rebooted and reinstalled several times as an administrator and with various parameters compatibility without success.  I tried to install the CD as well as on the internet with the same result.

    Advice please.

    Hey,.

    I would recommend running the fix for the patch posted by Kyle_W in the 4th message from the thread linked below.

    http://h30434.www3.HP.com/T5/notebook-operating-systems-e-g-Windows-8-and-software/officejetpro-8600-solution-Portal-Displays-HTML-code-in/TD-p/2489011

    Let me know if this solves your problem,

    Jason

  • How to access the file data of QML

    Hi all

    I save my data foler xml file after I have download from Server compnay.

    So I hope that I can access data foler to load the XML to display the list.

    Does anyone know how to set up the data source of the qml?

    {To ListView

    objectName: "objVehicleListView."

    dataModel: {XmlDataModel}

    Source: "file://data/vehicles.xml".<--  how="" to="" point="" to="" data="">

    }

    listItemComponents:]

    {ListItemComponent}

    type: "vehicle".

    {StandardListItem}

    Title:ListItemData.unitName

    Description: ListItemData.licencePlate

    status: ListItemData.vehicleOwnerName

    }

    }

    ]

    }

    I think that it is not possible to get the path using QML pure code. By using the code BBSJdev, you can get the path in C++ and export it to QML.

    Add the following code after the qml loading, but before creating rootObject:

    QDeclarativePropertyMap *filenames = new QDeclarativePropertyMap;
    filenames->insert("vehicles", QVariant(QString(
            QDir::homePath() + "/vehicles.xml")));
    qml->setContextProperty("filenames", filenames);
    

    Then you can use QML:

    ListView {
      dataModel: XmlDataModel {
        source: filenames.vehicles
    
  • How my XML file should look like to shoot ListItem.selected

    • ListItem.active - indicates whether the list item is active. An element is active if the user has a finger on it.
    • ListItem.selected - indicates whether the list item is selected. An item is selected if the user has typed the element and it appears selected on the screen.
    • ListItem.data - allows access to the data of the list item in the data model. This is equivalent to the ListItemData property that is used above.

    If im using meanings which would my look of xml file to do this work. Below the example xml. What would look like my xml if I wanted all the foregoing to be selected after a finger on her, real by selecting and sending it.

    
    

    Look at the stampcollector of the sample.

    (There is also cascadescookbook and weatherguesser)

    The concept that you need is the following: the xml file contains the data.  How is the list view display and interact with data. These are separate things.  The xml file should not have any dependence on the interaction between the program with data.

    See: http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller

    The XML in your case is the model.

    the XmlDataModel plays a role which is largely the controller in the MVC jargon.

    So check if something is selectable is made by putting in place your ListView.

    There is a lot of documentation easy to read under https://developer.blackberry.com/cascades/ with some great worked examples that should make clear how everything fits together.

    Stuart

  • Loading data from the external XML file

    Hello people!

    I have a XML file on my server, updated by cron every 10 minutes and I want to load data to my webworks her application, but the jquery ajax function do not support the folded areas. So here's my question - how should this information? Can I somehow download this file and then use ajax?

    Welcome!

    in your config.xml file, add an authorization to access your server:

    subdomains of http://www.yourserver.com"="true"/ >

    This will get by cross-origin issues.

  • problem write/read an xml file

    Hello world

    IM using ksoap library to access my webservice, if everything is ok, my webservice returns an xml file, then I use this file to show some information in my application.

    In the Simulator, everything works perfectly (BB simulator_5.0.0.411_8900), but in a real BB does not work, the app show me a NullPointerException.

    Anyone has an idea about this?

    public void CargaDatosIniciales(){
    
        String result="";
    
        String serviceUrl = "http://myserver.com/blackberry/soap.php";
        String serviceNamespace ="http://myserver.com/blackberry/soap.php";
        String soapAction = "http://myserver.com/blackberry/soap.php?wsdl";
    
        rpc = new SoapObject(serviceNamespace,"cargarVideos");
        rpc.addProperty("Login", usr);
        rpc.addProperty("Password", password);
        rpc.addProperty("user_agent", userAgent);
    
        try{
            SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
            envelope.bodyOut = rpc;
            envelope.dotNet = false;
            envelope.encodingStyle = SoapSerializationEnvelope.XSD;
    
            HttpTransport ht = new HttpTransport(serviceUrl);
            ht.debug = true;
            ht.call(soapAction, envelope);
            result = (envelope.getResult()).toString();
            writeXML(result,1);
    
        }catch(Exception e){
    
        }
    
    }
    
    private void writeXML(String result,int f) {
    
        String URL = "file:///SDCard/BlackBerry/documents/";
        String filename="";
        if(f==1){
    
            filename = "datosXML.xml";
        }
    
    ....
        String fName=URL+filename;
        try {
             DataOutputStream os = null;
                FileConnection fconn = null;
                try {
                        fconn = (FileConnection) Connector.open(fName, Connector.READ_WRITE);
                        if (!fconn.exists()){
                            fconn.create();
                        }
                            fconn.delete();
                            fconn.create();
    
                        os = fconn.openDataOutputStream();
                        os.write(result.getBytes());
                } catch (IOException e) {
                        System.out.println(e.getMessage());
                } finally {
                        try {
    
                            if (null != os)
                                        os.close();
                                if (null != fconn)
                                        fconn.close();
                        } catch (IOException e) {
                                System.out.println(e.getMessage());
                        }
                }
    
        } catch ( Exception e ) {
    
        }      
    
    }
    

    PD: Sorry for my English.

    In most cases, 'deviceside = true' does not work unless it is accompanied by specific carrier APN info.

    The AFN must be defined in the parameters of TCP devcie or added to your URL.

    See the following article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

    .. and this one:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/How_To _...

Maybe you are looking for

  • Is there a way to see the previous programs, I downloaded?

    I downloaded a free trial of a program. Once the trial has failed that I deleted it. I found very useful but don't remember the name of it to download again and buy it. Is there a list somewhere where I can find what I downloaded programs? I have not

  • ProBook G3 450: ProBook 450 G3 Ubuntu sound

    Hello world! I bought a HP ProBook G3 450 and installed Ubuntu 15.10 on it. And there is no sound at all. I tried to google, the decigion, but failed. Please help me with my problem.

  • Question about local variable in LabVIEW

    I am a new bie to LabVIEW. I have a question about local variable in LabView. I tried to stop a loop by the local variable, but the value of the loop for counter is different with my hope. I think that the loop to stop at 6, but he stopped at 7. Coul

  • Turn off my mouse/Touchpad!

    In detail how to disable my mousepad (turn it off completely off) on my Dell Inspiron mini 10?  I have mouse have been a thousand times and do not see any button for that.  I need step by step directions please.  I have an another USB mouse I use and

  • Distortion after update

    About 6 weeks, I did a Windows Update, and since then it has changed the proportion of how images appear on my screen. They are stronger and bigger. He still fills the screen, but it's visually distracting for me. I tried to restore from doa, jhoweve