3 Replies Latest reply on May 22, 2008 9:47 AM by garag

    Combo box populate from xml

    garag
      Hi.

      Is it possible to publish an example that shows how populate a combobox with a xml file?

      For example, if you have this xml:

      var sample : XML =
      <Values>
      <Value>
      <Label>20 per page</Label>
      <NumberPerPage>20</NumberPerPage>
      </Value>
      <Value>
      <Label>50 per page</Label>
      <NumberPerPage>50</NumberPerPage>
      </Value>
      <Value>
      <Label>100 per page</Label>
      <NumberPerPage>100</NumberPerPage>
      </Value>
      </Values>;

      What is the right code to show in the combo the values of all the node "Label"?

      The following doesn't work
      combo.dataProvider = sample.Values.Value.Label;

      Thank you
      Regards