1 Reply Latest reply on Jun 10, 2011 10:35 PM by Flex harUI

    Flatten hierarchical xml

    Zolotoj Level 3

      Is there a way of flattering an hierarchical xml?

       

      <menu name="Safety Catalog" menuid="1" parentid="">
        <menu name="General  Regulations" menuid="12">
          <menu name="Rule Gr-1" menuid="13" parentid="12"/>
          <menu name="Rule Gr-2" menuid="14" parentid="12"/>
         </menu>

      </menu>

      will become

      <menu name="Safety Catalog" menuid="1" parentid="">
           <menu name="General  Regulations" menuid="12"/>
           <menu name="Rule Gr-1" menuid="13" parentid="12"/>
           <menu name="Rule Gr-2" menuid="14" parentid="12"/>

      </menu>

       

      Thanks