How do you load external XML into a dataProvider?

I looked through the docs and found a couple of entries discussing how to load XML external. Unfortunately, this is where the example stops and there is no example to do something useful with the data.

So far, I managed to get my XML file loaded into actionscript/flex:
function getExternalXML (): void {}
request = new URLRequest ('source.xml');
loader = new URLLoader();
Loader.Load (request);
loader.addEventListener ("complete", loadXML);
}
function loadXML(e:Event):void {}
combo.dataProvider = loader.data;
}

Obviously, the foregoing does not at all. I don't know how to convert the loader.data in a format which includes the ComboBox.dataProvider. I can't believe I have to write a function to parse the XML file. There must surely be a way to simply convert the XML in a table, or something?

Looks like your xml file? If your xml file looks like this:




...

Then try this:

function loadXML(e:Event):void {}
combo.labelField = "@bar";
combo.dataProvider = (new XML (loader.data)) .children ();
}

Tags: Flex

Similar Questions

  • Can't view the data after loading the XML into RTF model

    Hi friends

    I am unable to view data in PDF after loading the XML into RTF model
    After I load the XMl file to my model
    The complement of the tab, I'm trying to get a glimpse of the output as pdf/xml etc, but he throws and error
    Window does not
    'C:\DOCUME~1\SYSNAME~\LOCALS~\APPLIC~1\Oracle\BIPUBL~1\TEMPLA~\tmp\3513518782149421out.pdf214921out.pdf '. Make sure you typed the name correctly and then try again. To search for a file, click the Start button and click Search

    I gave the name correctly only, but don't know y it displays error I have to reinstall the Office of Oracle BI Publisher once more please advice me what needs to be done to solve my problem of my PC

    Thank you
    Thiliban

    It seems that the problem is with the working directory of the BIP Office.

    If you have administrator access to the computer, please do the following:
    1 Windows-> Run-> regedit
    2. find the value of the next entry
    Publisher\Template HKEY_CURRENT_USER\Software\Oracle\XML for Word\TB_WORK_DIR generator
    3. change your path C:\DOCUME~1\SYSNAME~\LOCALS~\APPLIC~1\ORACLE\BIPUBL~1\TEMPLA~\tmp

    See you soon,.
    ND
    Use the buttons "useful" or "correct" to award points to the answers / mark the thread as answered, if your question is answered.

  • Load the xml into the mc symbols

    I am new to the integration of xml in my flash. I have used the components that make the link between for me, but have never tried to do the code myself. My project is a simple slideshow, which has transitions on the timeline that are very important to the project. I created an image holder movie clip symbol that is the same size as my images. I created the slideshow using multiple instances (each with its own instance name slide01, slide02, etc.) of this medium. All I want to do is to load from a xml file .jpg files to fill the files with the licensee prior to execution. I got the code works for the first image, but none of the others will fill. I am trying to load the xml data into a table, and then draw the table to fill the mc symbols. I modified the code I found in a tutorial. Help, please!

    You must slide01 movieclips,... slide10 to exist when this code runs.

    to see your images load those jpgs must be in the same directory as your html incorporation (or swf so you test in the flash test environment) and your movieclips slides must be visible (and does not cover the other).

  • How can you separate the pages into a number of pages?

    How can you separate pages and save it in different groups?

    With Adobe Reader, it is not possible.

  • Problem with the date when you load the XML file into Oracle Database 10g

    Hi all

    I have the interface as shown in the screenshot below. In this document, among other things, I am mapping to an element XML file representing a date to an Oracle table column defined as DATE. The source and target columns are highlighted in the screenshot.

    ! http://img223.imageshack.us/img223/1565/odiscr275.jpg!

    When I run the interface, I get the following error message:

    java.lang.IllegalArgumentException to java.sql.Date.valueOf(Date.java:103)

    I guess that this is the conversion of the date!

    I already tried to replace SRC_TRADES. DEAL_DATE with TO_DATE (SRC_TRADES. DEAL_DATE, ' DD/MM/YYYY') on the implementation tab. This feature was not recognized when I executed the interface, so it did not work! The value of date in the XML file is in the format DD/MM/YYYY .

    I guess that Date SQL Oracle functions do not work in the implementation tab. Could someone let me know:

    1. what the Date Conversion function I could use instead?
    2. where can I find a reference to the methods/functions that I use in the implementation tab (if such a reference exists)?

    See you soon.

    James

    Hello.

    Try changing the area of execution at the staging area. Once you change it, write in the map box just SRC_TRADERS. DEAL_DATE. When you use TO_DATE, the source field typu should be varchar2, no date (as it is in store for your data source)

  • How do I load the csv into table values

    Hi Experts,

    could you please tell me how to load csv values in the table.

    for example, I have a column given as: E01_0, actual work, FY12, Local, Total (data type is string)

    by manually
    Kind regards
    Surya

    Published by: surya on 6 March 2012 10:20

    Hi Surya,
    You can use the external table to load csv data.

    CREATE TABLE EXT_TABLE (COL1 VARCHAR2 (256))
    EXTERNAL ORGANIZATION
    (TYPE ORACLE_LOADER DEFAULT DIRECTORY DUMPDIR
    (SETTINGS) ACCESS
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ', '.
    SURROUNDED OF POSSIBLY "" "
    MISSING FIELD VALUES ARE NULL
    )
    LOCATION('TEST.) CSV')
    )
    REJECT THE LIMIT 0.

    Then EXT_TABLE, you can insert your values into your target table.

  • How can I load external movieclips?

    Is there someone who can help me with this? I ve done a test home page that you can see at: null

    It should work in this way, some one clicks on the buttons, the far-out of text on the screen, and when it stops it should trigger an external movieclip in the middle of the page. He works in the flash program but not on the web... How is it?

    I markt the: export Action Script and export in first frame...

    Someone know how to do...

    Micke,

    > This is the only code that is in action when the test1 or 2 stops... :
    >
    > //load film behavior

    Ah, you use a built-in behavior. I find that these often get more
    complicated they do. Not your fault at all. But for example,.
    If all you want to do is to load a SWF file, you can do it with a single line. This
    behavior uses five.

    {> If (this.keep == {Number (this.keep).)}
    > loadMovieNum (" http://www.mickesei.se/flash/2.swf", this.keep);
    >} else {}
    > this.keep.loadMovie (" http://www.mickesei.se/flash/2.swf");
    > }

    > Test1 or Test 2 is the trigger to start the movieclip...

    I don't know what is the reference to this.keep. What is the Forum
    name of a clip?

    What I would do in this case is to forget the behavior script and simply
    call the MovieClip.loadMovie () method - it's what happens in this
    line...

    this.keep.loadMovie (" http://www.mickesei.se/flash/2.swf");

    ... or use the MovieClipLoader class.

    David Stiller
    Adobe Community Expert
    Dev blog, http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Loading external swf into an Air application

    Hi all

    I have build an Adobe Air app for desktop PC and have problems to load an external swf. Whenever I try to load, I get:

    SecurityError: Error #2070: security sandbox violation... cannot access stage owned by app... blah blah

    The file is loading is in a local directory, but I understand its in an another "sandbox" that represents a security risk.


    Is there a way to get around this?


    Any help would be appreciated


    Thank you very much


    Matt

    That's why I added these comments on domain of the swf file.  for locally loaded SWF files, use:

    SFMltd wrote:

    Hi Kglad, thanks for the example.

    If I run my class with securityDomain = SecurityDomain.currentDomain; then it throws this error: SecurityError: Error #2142: security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property.

    The e-mail of swf file trying to load is stored locally, so I guess that this error is logical. However if I comment on this line, I get the same error "cannot access stage owned by app"?

    See below for the class:

    package {}

    import flash.display.MovieClip;

    import flash.filesystem.File;

    import flash.events.Event;

    import flash.net.FileReference;

    import flash.events.MouseEvent;

    import flash.display.Loader;

    import flash.net.URLRequest;

    import flash.system.LoaderContext;

    import flash.system.ApplicationDomain;

    import flash.system.SecurityDomain;

    public class assetPreview extends MovieClip {}

    private var loader: Loader;

    private var mainSWF:MovieClip = new MovieClip();

    public void assetPreview() {}

    addEventListener(Event.ADDED_TO_STAGE, initialise);

    }

    public void initialise(e:Event):void

    {

    removeEventListener(Event.ADDED_TO_STAGE, initialise);

    var allowSWF:LoaderContext = new LoaderContext (false, ApplicationDomain.currentDomain);

    allowSWF.securityDomain = SecurityDomain.currentDomain;

    loader = new Loader();

    Loader.Load (new URLRequest (settingsXML.pathToSWF), allowSWF);

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, viewPreview);

    }

    public void viewPreview(e:Event):void

    {

    addChild (mainSWF);

    mainSWF.addChild (loader);

    }

    }

    }

  • How can I load a .swf into all the customer?

    Hello world...

    I load a .swf file in all connected clients by pressing a button from another customer.

    Please, help me...

    Emiliano.

    Emiliano,

    What I see wrong in your code is lines like this:

    myLoader.load (new URLRequest ("myParam"));

    If you don't do that you try to load a file called myParam on your server. Try this:

    myLoader.load (new URLRequest (myParam));

    You will then load the file name, your server has sent to your customer.

    On the embeded Apache, when you install FMS Setup asks you whether you want to install a bundled Apache server. In this case you will find the Apache server inside FMS application files and it will be configured for the HTTP proxy for it. To be brief, FMS listen on HTTP port (80) and Apache on port 8134 (default). When FMS receives an HTTP request post it Apache on port 8134 on localhost and the Apache line is sent to the client. So if you need load a SWF over HTTP so it's how it's done.

    The 'train' film is a FLV video that you see on a mini-site comes with the installer of the FMS. When you install it by default your server contains on its base address, port 80, a HTML page where you can see the FLV video. It's a beautiful country side with an old train upview passing. When you read the FMS installation program is how you can check your FMS server and Apache are running.

    If you have installed Apache after FMs that you must do 3 things:

    1. Edit you Apache httpd.conf so that he listens to a port other than 80 (say 8134). Just add the line "Listen 8134" when the httpd.conf file refer to the parameter "Listen."
    2. change the configuration of your FMS applications of HTTP proxy on your localhost, port 8134.
    3. then stop FMS, restart Apache and start FMS then they enter in a port conflict listens.

    See the documentation for the SGF in the Administrator's guide to look at where you can do for the FMS proxy configuration.

    See you soon,.

    François

  • Title and Description of loading external XML code

    I create an Autorun for CD using flash CS4 in which Tilelist will display the product image and cursor will slip into the images. When he's slipped, product title and Description must be specified. But instead of projection, text field is blank and nothing appears. Here is the code:

    Yes, looks like you have your information stored in XML attributes instead of nodes.

    Access it via my_xml.product[item].@label

  • How can you save images cut into slices?

    I cut out my computer for web design in different images that I want to insert in DW. I can't understand how to record individual images.

    File - Save For Web & Devices, and then click the [Save] button at the bottom.   You will see a few options in the dialog box that appears.

    -Christmas

  • Load external images in symbol or rectangle

    Hello

    Is a way to load external images into a symbol or a rectangle?

    Just google this topic and all the results I found looks like no work aboard animate 2014.1.1

    something like $(this.lookupSelector("target")).attr("src","folder/myimg.jpg");

    Loading jquery im - 2.1.1.min.js

    Thank you.

    Ok. If you have a container div, then it's easy. png or jpg or svg extension

    SYM. $('containerDivName') .css ({'background-image': 'url ("images/imageName.png")', 'background-repeat': 'no-repeat'});

  • Connection to the external xml file

    How to use an external xml file as a data source for my LiveCycle form?

    I have a xml file on my server which is updated daily by a script. My LiveCycle form is on the server and can be pushed to the client by the click of a button on a web page or similar. Is it possible to have the LiveCycle form refresh its data before being sent to the client, or every day?

    I thought that the burden of form, a JavaScript function could check if the form is on the server, or check if the xml file is there, and if this is the case, update itself, else do nothing.

    I prefer to keep the xml file and the distinct shape that other applications and do scripts use xml file.

    Thank you.

    (1) if the form is used internally on the same network (ie: the xml file is still available over the network to your th) form questionable local files, but it requires advanced script.

    I did it with network drives shared tho. -If you do, I use the two solution

    (2) assuming you are using LC Reader Extensions as well as the form is "all over", not always on the network starting.

    -Expose the XML file through a Web service (if it is not sensitive data)

    -Get the form to query the Web service

    (3) but if you have installed with LiveCycle Forms.

    Use the readXML and how to bind the XML with the form.

  • Loading external images

    Can someone tell me if there is a way to load external images into a SWF file. The size of the file becomes large enough, and I'm trying reduced.
    Thank you

    http://www.Kirupa.com/developer/FlashCS3/loading_image_as3_pg2.htm

  • Load the XML file into Oracle external Table


    I load the data from the XML file into an intermediate table Oracle using external Tables.

    Let's say below, it is my XML file

    < header >
    < A_CNT > 10 < / A_CNT >
    < E_CNT > 10 < / E_CNT >
    < AF_CNT > 10 < / AF_CNT >
    < / header >
    < student >
    <>students-details
    < Student_info >
    < Single_Info >
    < ID > 18 / < ID >
    New York < City > < / City >
    < country > United States < / country >
    < Name_lst >
    < Student_name >
    Samuel < name > < / name >
    Paul < Last_name > < / Last_name >
    < DOB > 19871208 < / DOB >
    Aware of < RecordStatus > < / RecordStatus >
    < / Student_name >
    < Student_name >
    Samuel < name > < / name >
    Paul < Last_name > < / Last_name >
    < DOB > 19871208 < / DOB >

    < TerminationDt > 20050812 < / TerminationDt >
    History of < RecordStatus > < / RecordStatus >
    < / Student_name >
    < / Name_lst >
    < Personal_Info >
    <>men < / Type >
    < 27 > < / Age >
    < / Personal_Info >
    < / Single_Info >
    < / Student_info >

    < student - register >
    class < A >
    < info >
    < detail >
    < ID student > 18 < / student >
    EE < major > < / Major >
    < course-Grades >
    < course > VLSI < / course >
    < degree > 3.0 < / Grade >
    < / course-Grades >
    < course-Grades >
    < course > nanotechnology < / course >
    < degree > 4.0 < / Grade >
    < / course-Grades >
    < / details >
    < detail >
    < ID student > 18 < / student >
    THIS < major > < / Major >
    < / details >
    < / info >
    class < A >
    < Student_Enrol >
    <>students-details
    < student >

    I load this XML data file into a single table using an external Table. Could someone help me please with coding.

    Thank you

    Reva

    Could you please help me how to insert my XML content into that.

    Same as before, try a plain old INSERT:

    insert into xml_pecos

    values)

    XmlType (bfilename ('XML_DIR', "test.xml"), nls_charset_id ('AL32UTF8'))

    );

    But you'll probably hit the same limitation as with the binary XMLType table.

    In this case, you can use FTP to load the file as a resource in the XML DB repository.

    If the XML schema has been registered with the hierarchy enabled then the file will be automatically inserted into the table.

    Could you post the exact statement that you used to save the scheme?

    In the meantime, you can also read this article, I did a few years ago, it covers the XML DB features that may be useful here, including details on how to load the file via FTP:

    https://odieweblog.WordPress.com/2011/11/23/Oracle-XML-DB-a-practical-example/

    And documentation of the course: http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb06stt.htm#ADXDB4672

Maybe you are looking for

  • Satellite L650 - 10 M - webcam can't initialize

    Hi all I have a serious problem with my Camera / Webcam Toshiba Satellite L650 - 10M, it works sometimes and sometimes it doesn't, sometimes when I start the computer the msg comes "Web camera can't initialize' and sometimes it starts to work by hims

  • Problem reinstalling XP on Portege 3480CT

    I have a Portege formatted and try to reinstall XP Home. I downloaded the microsoft XP Setup disk files. When I try to install, I get the last disk (6th), then the error:Problem detected windows stops to avoid damageAm I supposed to load any software

  • Fingerprint reader not working not not on ThinkPad T450s on Windows 10

    The reader of the FP does not work on my T450s on Windows 10, even if drivers "Synaptics PS sensors (WBF) (PID = 0017)" are correctly installed. I can get into the Setup Windows Hello of fingerprints (screenshot below), but the reader of the FP doesn

  • Pxi different 2-5421 or-tclk synchronization help and reversing a signal

    I have 2 PXI-5421 function generators. Screened through my vi I load a .hws file and output the same signal makers 2 all in phase and triggering the same point. I need basically to do, it is reverse one signal of 180 degrees and keep them always trig

  • I lost my activation key. How can I get that back?

    validation problem genuine xp Hello. I searched the forum before posting, also a few Google search without much luck. I have a genuine copy of XP sp2 pro that I have unpgraded to sp3. I lost the cover of the disc came in so I did not have the key. Wh