4 Replies Latest reply on Jul 2, 2009 1:51 AM by karthik flex

    How the xml output will be?

    karthik flex

      hi

       

      For the below table how can the xml should be

       

      Time

      Phys1

      Phys2

      9.00

      9.15 xxx

      9.25 xxx

       

      9.30 yyy

       

      10.00

       

      10.15 xxx

       

       

      I am going in reverse order since my client is not happy with what i did

       

      My client said i did not ask the exact requirement so

      above table is the exact requirement

       

      how the xml output should be

       

      any idea

       

      karthik.k

        • 1. Re: How the xml output will be?
          sri harsha namala Level 2

          i hope this is the best way

           

          <result>

          <item Time=""  Phys1=""  Phys2=""  />

          <item Time=""  Phys1=""  Phys2=""  />

          <item Time=""  Phys1=""  Phys2=""  />

          </result>

          • 2. Re: How the xml output will be?
            karthik flex

            hi namala

             

            you can see Phys1 having two data that comes one below the other

             

            does this suit exactly

             

            any idea

             

            karthik.k

            • 3. Re: How the xml output will be?
              sri harsha namala Level 2

              Oh Sorry Karthik i didnt Notice that two element above Xml will not work i feel

              You should follwo some other Pattern

               

              May be this helps

              <result>

                    <item>

                        <time>

                             <time></time>

                                       .

                                       .

                        </time>

                        <phycs>

                              <phycs></phycs>

                                       .

                                       .

                        </phycs>  

               

                   </item>

              </result>

              • 4. Re: How the xml output will be?
                karthik flex

                hi namala

                 

                Yes thank you this is what i was looking for

                 

                <result>

                      <item>

                               <time>9:00</time>

                          <phycs >

                                <phycsTime>9:15 </phycsTime>

                               <phycsTime>9:30</phycsTime>

                          </phycs>

                          <phycs>

                                <phycsTime>9:25</phycsTime>

                          </phycs>

                     </item>

                     <item>

                               <time>10:00</time>

                          <phycs >

                          </phycs>

                          <phycs>

                                <phycsTime>10.15</phycsTime>

                          </phycs>

                     </item>

                </result>    

                 

                when i used like above it display all in one column should i need to separate two phycs with different names to display in different column

                like below

                 

                 

                          <phycs1>

                                <phycsTime>9:15 </phycsTime>

                               <phycsTime>9.30</phycsTime>

                          </phycs1>

                          <phycs2>

                                <phycsTime>9.25</phycsTime>

                          </phycs2>

                     </item>

                 

                am i right or wrong

                 

                karthik.k