0 Replies Latest reply on Sep 1, 2007 10:09 PM by Navin Reddy

    Xml processing.....to get an arry of objects  of same named tags..

    Navin Reddy
      Hello,

      i have the folowing xml data..

      <?xml version="1.0" encoding="UTF-8"?>
      <modules>
      <moule_1>
      <m1_1>
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      </m1_1>
      <m1_2>
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      </m1_2>
      <m1_3>
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      </m1_3>
      </moule_1>
      <module_2>
      <m2_1>
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      </m2_1>
      <m2_2>
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      </m2_2>
      <m2_3>
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      </m2_3>
      </module_2>
      <module_3>
      <m3_1>
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      </m3_1>
      <m3_2>
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      </m3_2>
      <m3_3>
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      <leaf attr1="" attar2="" />
      </m3_3>
      </module_3>
      </modules>


      .above data is sample one i dont know how many modules are in xml document...
      now i need an array of all leaf objects.....

      is there any xml processing methods ?? like getElementByTagName()

      please help me!!!