0 Replies Latest reply on Jul 11, 2011 10:58 AM by BriHami

    Help displaying XML data

    BriHami

       

      Hi community

       

      I have an XML file I have imported via HTTP service and would like to display the data with the same functionality as this site http://www.bet365.com/home/FlashGen4/WebConsoleApp.asp

       

       

      I am guessing this is achieved with the advanced datagrid but any advice would be great as I am new to Flex (put not programming in genral). The main goal is to have a side bar dynamically populated with names from the XML file and when a name is clicked the main section displays the details of this person, details also contained in the XML file.

       

      Here is how the XML file looks

       

      <?xml version="1.0"?>
      <EmployersAndRole>
          <Job Title="Admin">
              <Name FirstName="John" LastName="Smith">
                  <Details1 Country="England" City="London" Address"Somewhere" />
                  <Details2 Contract="Full Time" Salary="Not enough" />
                  <Details3 ......
                  ..more details
              </Name>
          </Job>
          <Job Title="Data Entry">
              <Name FirstName="Claire" LastName="Lee">
                  <Details1 Country="England" City="London" Address"Somewhere" />
                  <Details2 Contract="Full Time" Salary="Not enough" />
                  <Details3 ......
                  ..more details
              </Name>
          </Job>
          <Job Title="Admin">
              <Name FirstName="Paul" LastName="Jones">
                  <Details1 Country="Scotland" City="Glasgow" Address"Somewhere" />
                  <Details2 Contract="Part Time" Salary="Not enough" />
              </Name>
          </Job>

       

          etc.......

       

      </EmployersAndRole>

       

      Many thanks for any help

       

      Brian