G
gsoftwares
Hi XML Guru,
I need to transform flat xml to Hierarchy xml. Can some one help me get
started or have a same code with them
my flat xml:
<rowset>
<row>
<id>1</id>
<parent_id>0</parent_id>
</row>
<row>
<id>2</id>
<parent_id>1</parent_id>
</row>
<row>
<id>3</id>
<parent_id>2</parent_id>
</row>
<row>
<id>4</id>
<parent_id>1</parent_id>
</row>
</rowset>
I need in this hierarchy xml structure:
<rowset>
<row>
<id>1</id>
<parent_id>0</parent_id>
<childs>
<row>
<id>2</id>
<parent_id>1</parent_id>
<childs>
<row>
<id>3</id>
<parent_id>2</parent_id>
</row>
</childs>
</row>
</childs>
</row>
<row>
<id>4</id>
<parent>1</parent>
</row>
</rowset>
please help me
~gbk
I need to transform flat xml to Hierarchy xml. Can some one help me get
started or have a same code with them
my flat xml:
<rowset>
<row>
<id>1</id>
<parent_id>0</parent_id>
</row>
<row>
<id>2</id>
<parent_id>1</parent_id>
</row>
<row>
<id>3</id>
<parent_id>2</parent_id>
</row>
<row>
<id>4</id>
<parent_id>1</parent_id>
</row>
</rowset>
I need in this hierarchy xml structure:
<rowset>
<row>
<id>1</id>
<parent_id>0</parent_id>
<childs>
<row>
<id>2</id>
<parent_id>1</parent_id>
<childs>
<row>
<id>3</id>
<parent_id>2</parent_id>
</row>
</childs>
</row>
</childs>
</row>
<row>
<id>4</id>
<parent>1</parent>
</row>
</rowset>
please help me
~gbk