Simple question about reading XML

I'm going through an example that has XML at two levels like this:

content of my file test.xml:

< data >

< order >

< name > John < / name >

< / order >

< / data >

And I have this in my mxml application file:

< mx: Model id = "testModel" source="model/test.xml"/ >

< mx:ArrayCollection id = source = "{testModel.order}" / "acOrders" >


< mx:DataGrid id = "orderGrid" width = "100%" height = "100%" dataProvider = "{acOrders}" >
< mx:columns >
< mx:DataGridColumn dataField = "name" headerText = "Name" / >
< / mx:columns >
< / mx:DataGrid >

The above code works fine, but I want to change the XML to a strucute as follows:

< data >

< order >

< delivery >

< name > John < / name >

< / shipping >

< / order >

< / data >

And I tried to make changes to account for the new tag < expedition > but nothing gives data.  What is the secret to access deeper levels of XML?

In version 3.4 of the SDK, you should be able to do this:

dataField = "shipping.name"

In earlier versions, you had to use a labelFunction or a custom converter to drill down into lower levels of your XML.

Tags: Flex

Similar Questions

  • [Beginner] Simple question about fontStyle

    Hello world!

    A simple question about fontStyle (ParagraphSyle or paragraph)

    I have seen that fontStyle is for bold, italic and underlined.

    Is it possible to have some bold AND italic or italic AND underlined paragraph? If it is possible how can I do this (for example in javascript)?

    I have found that this type of examples:

    myParagraphStyle.appliedFont = "Arial";
    myParagraphStyle.fontStyle = "Bold";
    myParagraphStyle.pointSize = 24;
    myParagraphStyle.spaceAfter = 24;
    myParagraphStyle.spaceBefore = 24;
    myParagraphStyle.fillColor = myDocument.colors.item ("Red");

    Someone has an idea?

    Afternoon of Goor

    Is it possible to have some bold AND italic or italic AND underlined paragraph? If it is possible how can I do this (for example in javascript)?

    I have found that this type of examples:

    myParagraphStyle.appliedFont = "Arial";
    myParagraphStyle.fontStyle = "Bold";
    myParagraphStyle.pointSize = 24;
    myParagraphStyle.spaceAfter = 24;
    myParagraphStyle.spaceBefore = 24;
    myParagraphStyle.fillColor = myDocument.colors.item ("Red");

    Someone has an idea?

    Each font has its own list of styles - so some fonts will work with "Bold Italic" - some don't.

    Myriad PRO were "Bold Condensed Italic" and "Bold Italic". Some fonts use "Slanted" as "italic".

    Robin

    www.adobescripts.co.UK

  • I have a simple question about the meta-data.

    Hello. It is a simple question about the meta-data. How can I get the video bitrate of a flv or mp4 (video playing via NetStream file) file

    right now I have this:

    Code
    var netClient:Object = new Object();
    netClient.onMetaData = function(meta:Object)
    {
    for (var in meta props) {}
    trace (props + ":" + meta [props]);
    }
    MovieClip (root) .durations = meta.duration;
    trace (MovieClip (root) .durations);
    };
    NS.client = netClient;

    And my output is:

    videocodecid: avc1
    audiocodecid: m4as
    aacaot: 2
    Width: 960
    AudioChannels: 2
    videoframerate: 23.976
    TrackInfo: [object Object], [object Object]
    moovposition: 32
    avcprofile: 77
    audiosamplerate: 48000
    avclevel: 31
    seekpoints: [object Object], [object Object], [object Object], [object Object]
    height: 540
    Duration: 221.312

    As you can see, there is nothing of video bitrate.

    I know that the video bitrate of my videos, but then I have to manually type each number of bitrate into my flash project, and it would be such a fuss when I have a lot of videos. Would be nice if flash can detect the video bitrate.

    It's for my online portfolio.

    Why you divide by 8?  If you want to convert bytes into bits, multiply by 8.

  • Simple question about calling script

    Hi people,

    I am new to flash and actionscript, so only to learn one simple question. (I have not found an answer while the former posts surf/reading again)

    If I wrote a script at the top of my project:

    btnTest1._visible = false;

    btnTest2._visible = false;

    btnTest3._visible = false;

    etc.

    I can create something to call this script in without having to re write the original code if I need to use it again, for example:

    btnTest4.onrelease = function() {}

    btnTest1._visible = false;

    btnTest2._visible = false;

    btnTest3._visible = false;

    }

    I'm looking for a way to store need to unnecessarily repeat the script

    See you soon

    Yes, you can create features and reuse them as long as they remain accessible.  Just be aware that you are showing code Actionscript 2, Actionscript 3.  Below it is rewritten in AS3...

    function hideEverything (): void {}

    btnTest1.visible = false;

    btnTest2.visible = false;

    btnTest3.visible = false;

    }

    And that the function could be further simplified because of the way you named elements (more sense if there is more than a mere 3)...

    function hideEverything (): void {}

    for (var i: uint = 1; i<4;>

    This ["btnTest" + String (i)] .visible = false;

    }

    }

    Place the strings in parentheses causes their names of proceedings for assessment.

  • Simple question about the signing of the app

    Hello.

    I develop libraries to be used in other apps.

    It will be a cod file, its name will be added to the jad as a dependency.

    My library has access to the secure API (call of the browser), so I have a simple question:

    can I register only my cod library or application that uses my library is expected to be signed in too?

    THX.

    You should be ok just signature cod of the library, if your application uses any API secure. However, I just make a habit to sign everything just in case.

  • Simple question about Append hint

    ORACLE-BASE - title

    The link above, I have just a basic question about add suspicion...

    How the APPEND Hint affects the performance

    The APPEND tip tells the optimizer to perform an access direct-path insert, which improves the performance of INSERT .. SELECT operations for several reasons:

    • Data are added at the end of the table, instead try to use the free space in the table.
    • Data is written directly to the data files, passing the buffer cache.
    • Referential integrity constraints are ignored.

    I wanted to just understand to what extent is the third correct point

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

    CREATE TABLE emp
    (
    emp_id a PRIMARY KEY/NUMBER
    emp_name VARCHAR2 (100),
    dept_id NUMBER
    );

    CREATE TABLE dept
    (
    dept_id NUMBER PRIMARY KEY,
    dept_name VARCHAR2 (100)
    );

    ALTER TABLE ADD FOREIGN KEY (Dept_id) emp made REFERENCE to Department (Dept_id);


    INSERT / * + append * /.
    IN emp
    Select 1, 'King', 100 from dual;

    COMMIT;

    The insert will definitely give an error

    ORA-02291: integrity constraint (SCOTT. SYS_C0013725324) violated - parent not found key

    Am I missing something here?

    See you soon,.

    Manik.

    sqlldr can and does ignore referential integrity / triggers and same uniqueness in a load path direct, insert / * + append * / doesn't - you do not direct path when they (constraints) exist.


    parallel is always a direct route, if you go in parallel, you add.

    https://asktom.Oracle.com/pls/asktom/f?p=100:11:0:no:P11_QUESTION_ID:1211797200346279484

  • Very simple questions about DPS

    I have a few questions about the tools and DPS.


    1. What is the difference between Folio and DPS Article?

    I think that the two format have a fixed layout. I don't understand difference and the merit of the Article of DPS.

    I want to know why the Folio was disappear and replace by Article of DPS.


    2. I want to know that all publish root of DPS. (ex.) App Store for iOS, Google android game and..)

    I know that I can make the app, iOS, Android, and windows for each stores with DPS.

    If I want to publish to the Kindle store, iBooks store, store kiosk to newspapers or on the Web site, I don't need using DPS?

    3 if I want to book recomposable (like reactive Web site), I shouldn't use InDesign?

    Is there a process for making recomposable document with InDesign?

    can I use text editor, DW or muse? (such as the manufacture of the normal site)

    I want to know the standard method book recomposable.


    Sorry for my bad English.

    1. I know you probably talk format but essentially, a DPS classic folio is now a collection, the items in the collections are always content

    2 - iOS, Android and Windows platforms that you can publish on are

    -We do not support the Kindle store

    -For book content type, you want to use the ePub format, please see the following links:

    http://wwwimages.Adobe.com/content/dam/Adobe/en/DevNet/digitalpublishingsuite/PDFs/DPS_and _ePub_FAQ.pdf

    https://helpx.Adobe.com/InDesign/how-to/eBook-fixed-layout.html

    3 - InDesign has the ability to create recomposable ePub

    See this tutorial: https://helpx.adobe.com/indesign/how-to/ebook-fixed-layout.html (with exercise files)

    Hope that helps!

  • Simple question about NVL

    Hello

    It's simple question on NVL, here are the details:

    create table tb_test (number (3) id, varchar2 (12)) nm;

    insert into tb_test values (111, 'AAA');

    Select NVL (nm, n / 'a') in tb_test where id = 222;

    I don't have "N/a", which is what I expected. Any comment?  Thank you!

    Hello

    If you want a row of output, even if the query produces no line; right?

    This looks like a job for outer join:

    SELECT NVL (t, nm, n / 'a') OUTPUT

    OF the double

    LEFT OUTER JOIN tb_test t ON t.id = 222

    ;

    LEFT OUTER JOIN ensures that each row in the table to the left (i.e. immediately before "LEFT OUTER JOIN") will join, even if the condtion join fails.  It is 1 row duplicate, therefore, if there is no line in tb_test that fills the 'id = 222' condition, that the double row will be in the game anyway.  If there is tb_test lines that meet the condition, they all appear in the result set.

  • Simple question about making elliptical mask

    I learn AE CS4 and I have a question about doing the elliptical mask:

    When I click and drag, I get an ellipse with control points, but the real mask is always a rectangle (i.e. areas of X and Y of the ellipse). In fact, this happens with all forms.

    Thank you

    You have rendered for previews on OpenGL? If so, turn it off.

  • Simple question about tree

    It is a simple question but I don't seem to be able to solve it, the thing is I have a component of the tree and I don't want any image for icons (by default, they are included), I want to just plain text, so I need to remove the sheet, disclosure and the folder icon that appear in the tree component.

    Any ideas on how to do this?

    Thank you

    The attached code allows, but does not solve the arrow without removing the possibility to expand the tree.

    Delete the following command to see the arrows (maybe that's what you want):
    disclosureClosedIcon: ClassReference ("classes. EmptyIcon");
    disclosureOpenIcon: ClassReference ("classes. EmptyIcon");

  • Simple Question about Acrobat 9 Pro - Reader Extensions

    Greetings experts:

    If the extended rights (limit of 500 for data collection) are to a single PDF file and after that the limit has been reached that PDF is then changed (different fonts, different logo, another name of file... etc), Extensions of reading is reused and re-released, rights revert to 500?

    I reason that change the structure of the PDF 'extended' will create a new PDF so new rights are should be applied.

    Thanks in advance for taking the time to read this survey.

    response of graffiti suggests somewhat the end result. If you are considering minor changes, a new form, so expect to be in dispute if caught. Does this mean that you will be found guilty? N ° - but it is worth the cost?

    Why do you need to have rights to drive anyway? Submit the data does not require the possibility to save the form. Presentation of data does the work (FDF, XML, etc.). Registration is convenient for the customer, not a necessity. You can import the data in the form (with the exception of the HTML data) in the form and you have in turn exactly what has been submitted.

    If you need a better answer, then you will need to follow the advice of a lawyer (or more). We are aware that many people do not read the EULA and this is why we repeat the reminder on this issue regularly. The limit does not apply unless you activate player rights. However, it is not necessary to send a form (as already mentioned), another idea that people seem to not understand.

    You can exceed the limit once you negotiate with Adobe. Expect the cost to be in the thousands.

  • simple question about access to information of predicate and filter

    Hello Experts

    I know that maybe this is a very simple and fundamental question. I read a lot of articles on explains the plan and trying to understand what are 'access' and 'filter' which means?
    Please correct me if I'm wrong, I guess when the index of explain plan can use predicate choose access if the explain command plan go with complete table filter scan (witout index) is chosen.

    My last question is, can you recommend me an article or document will contact plan to explain it in clear language and base level?

    Thanks in advance.

    Hello

    as the name suggests, access predicate is when data access based on a certain condition. Filter predicate is when the data is filtered by this condition after reading.

    For example, if you have a select * FROM T1 WHERE X =: x AND Y =: y, where X column is indexed, but column Y is not, you can get a map with an INDEX RANGE SCAN with access predicate = X: x (because you can use this condition to when selecting the data to be read and read only sheets of index blocks that meet this condition) and ACCESS BY ROWID from TABLE with the filter predicate Y =: y (because you cannot check this condition until after reading the table block).

    I'm not aware of any good articles on the subject, and unlike others I can't find Oracle enough detailed documentation. I suggest you read a book, for example Christian Antognini, "Troubleshooting Oracle performance problems."

    Best regards

    Nikolai

  • Simple questions about interactive Apex reports

    I have not yet made many experiments with interactive reports, and a few weeks ago, I heard a colleague that I should not create them. He told an interactive report in our environment of production - according to him, if a user changes the interactive report (for example, adding or dropping a column), other (s) see the same changes that have been made by the first user, so this interactive report cannot have its columns or content is personalized for each user because each user will need to see its own version of the interactive report.

    Because it is expected that each user can see their own version of interactive reports, it discouraged me to go forward. I need to understand this situation because I'm about to release another interactive report in a new page of the Apex - and overcome this if possible.

    Another question: is it possible to replace Oracle reports with export to PDF - Apex and this would include customized logo, header, trailer, and other features of Oracle reports? Certainly not at 100%, but some of these features, such as reports of matrix - they do? Right now, I put reports in packs of function that returns custom types and activities of logic inside the function that returns a type Apex them simply returns by selecting its data, but this question has crossed my mind because I would like to release the Apex of other software development environment.

    I use version 4.2 of the Apex.

    Hello

    There is an attribute on interactive reports where you can define whether the user can save it s own versions of the report, removing columns or adding filters, but the main report is always the same for all users, just as it has been defined by the developer of.

    On PDF printing, I use Jaspersoft Studio to do. It s free and very useful.  There is a package called jrxml2pdf developed by Andreas Weiden, that allows you to print reports of APEX jaspersoft.

    It may be useful

    Best regards.

  • Simple questions about drag liberation movements.

    Hello

    I looked for some time, but I wasn't able to understand everything that I need.

    In short, I want to have a simple Drag and Drop.
    I don't want to move the data, I just want to have a node (source) to interact with another node (target). Each funky stuff like change the color or change mouse cursors when I go on potential targets are not important for now.
    I want just a beginning 'drag', a 'drop' and a 'dragdone '.
    Rendering, it is the start of the trail and the part of the drop.

    I used the setOnDragDetected function, which works very well and decided to startFullDrag() from the API seems to me, that is the right way.
    this.setOnDragDetected(new EventHandler<MouseEvent>()
            {
                @Override
                public void handle(MouseEvent p_Event)
                {
                    System.out.println("DragDetect");
                    startFullDrag(); 
                    p_Event.consume();
    As it seems to activate or maybe switch the DragEvents to MouseDragEvents - I used setOnMouseDragReleased to activate a reaction on a 'drop' (or a 'drag version') with success.
    this.setOnMouseDragReleased(new EventHandler<MouseDragEvent>()
            {
                @Override
                public void handle(MouseDragEvent p_MDEvent)
                {
                    System.out.println("DragRelease");
                    p_MDEvent.consume();
                    
                }
            });
    But I want to change something about the source, although I have the drag (grayish color, perhaps) and he had to find, when the brake is completed.
    For the DataDrags, it is possible with "OnDragDone" which seems to be enabled for the source. Exactly what I want, as it seems.
    It does not somehow for my knots.

    They Interact with nodes form the same base class, so that each would catch any event, which would be activated, but no node has given me an exit. I tried each recipient event that seemed remotely appropriate.
    I don't want some Drag Queens 'half-alive' or anything like that. I'd really like to be able to react at the end of a drag.

    I would be really grateful if you can help me with this problem.

    TL; Dr:
    Drag-and - release from one node to another works, but I can't get an event that informs the node that the drag is finished. So I may not remove changes to the interface, I did to make the clear source as the "source".

    Published by: Anro on 12.11.2012 04:43

    This tutorial covers what you need: http://docs.oracle.com/javafx/2/drag_drop/jfxpub-drag_drop.htm

    For your "done drag" was not based on the source, I think that you must invoke
    setDropCompleted (true)
    on the event drag to make this happen.

    If you want something like

    target.setOnDragDropped(new EventHandler() {
      public void handle(DragEvent event) {
        // process end of drag on target
        ...
        // Now inform the drag event that everything's complete:
        event.setDropCompleted(true);
      }
    };
    
    source.setOnDragDone(...);
    
  • simple question about removing a hole in a wall

    having a single blow of a person in a room.  the wall behind him, has a small hole about the size of a quarter.  How do I "clone stamp" out in sequels?  his simple plaster painted a gray Brown, btw.

    If the shot is locked off (no movement of the camera) and nothing happening in front of the hole, and there is a visible own section to match the wall down, then it is really as easy as using the Clone Stamp tool.  You could also duplicate your layer, hide a section of the solid wall and place it back on the hole in the first layer.

    If the camera moves, you may need to use Motion Tracking or stabilization of the Motion.

    If the object passes in front of the hole at any time, you may need to use your replacement upper layer masks.

Maybe you are looking for

  • Read emails remain on display as unread - how to solve this?

    Only in the last days, when I read an email in which the subject is always displayed "BOLD", i.e. as not widely read. Is there a way I can fix this?

  • How to change my settings of codec audio idt high definition.

    Hi I want to change my settings from the stereo to the surround out in my laptop 2204tx g6 in idt hd audio codec.tried but failed.my idt settings shows only stereo. Any solution please?

  • Photosmart HP 7510: New Samsung Galaxy S5 and eprint

    I got an I phone and it was set up to go to my eprint.  Now I just bought the Samsung S5.  It is configured to send emails to my printer and will do.  But, when I try to send it directly to my printer fails.  How can I configure my phone for eprint. 

  • View image icon file

    Today is the first time that I had this problem.  When selecting to display the large icon of my photos - I get the icons of the program logo, not my photos. Tried each photo progam I have and get the same results, not my photo images, just the progr

  • Verizon confirms what ICS spread from today?

    official website of verizon http://News.verizonwireless.com/news/2012/06/Motorola-droid-RAZR-Maxx-upgrades-to-ice-cream-sandwich... and on verizon twitter account http://Twitter.com/VZWSupport/status/216173594907115520