0 Replies Latest reply on Mar 13, 2014 9:19 PM by Steven131

    xml comparision using event handler

    Steven131

      Hi all,

      i have two xml files

      1.student.xml

           <STUDENTS>

             <STUDENT>

               <NAME>Anorxic Al</NAME>

                 <Id>1</Id>

                 <GRADE>A</GRADE>

             </STUDENT>

                <STUDENT>

               <NAME>John steve</NAME>

                 <Id>2</Id>

                 <GRADE>A</GRADE>

             </STUDENT>

          </STUDENTS>

        2.department.xml

          <DEPARTMENT>

             <DEPT>

                 <Id>1</Id>

               <NAME>PHYSICS</NAME>

                 <SECTION>A</SECTION>

                 <CITY>NEWYORK</CITY>

             </DEPT>

                <DEPT>

                 <Id>2</Id>

               <NAME>CHEMISTRY</NAME>

                 <SECTION>B</SECTION>

                 <CITY>NEWJERSEY</CITY>

             </DEPT>

          </DEPARTMENT>

       

          I have to compare two xmls and when id =1 i need to populate all details of a student like

       

      <NAME>Anorxic Al</NAME>

                 <Id>1</Id>

                 <GRADE>A</GRADE>

               <DNAME>PHYSICS</DNAME>

                 <SECTION>A</SECTION>

                 <CITY>NEWYORK</CITY>

       

      in a panelbox with text fields on clicling button using event handler

      appreciate your help.