3 Replies Latest reply on Mar 5, 2010 2:36 AM by Francisc

    Converting string(which is an xml from the java side) to xml in flex

    vaishalishah

      Hi,

         I have an xml from the java side which i send as string over amf. I need to convert this to xmllist or xml and bind it to a tree. Could some one help me in doing this. My label field needs to be displayName

       

      this is my xml that comes as string to the flex side

       

      <Menu>
        <MenuItem>
          <id>1</id>
          <displayName>Add</displayName>
          <menuList>
            <MenuItem>
              <id>3</id>
              <displayName>Form1</displayName>
              <menuList/>
            </MenuItem>
            <MenuItem>
              <id>4</id>
              <displayName>Form2</displayName>
              <menuList/>
            </MenuItem>
          </menuList>
        </MenuItem>
        <MenuItem>
          <id>2</id>
          <displayName>Delete</displayName>
          <menuList>
            <MenuItem>
              <id>5</id>
              <displayName>Form1</displayName>
              <menuList/>
            </MenuItem>
            <MenuItem>
              <id>6</id>
              <displayName>Form2</displayName>
              <menuList/>
            </MenuItem>
          </menuList>
        </MenuItem>
      </Menu>