[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] rephrase question: grouping and sub grouping
Title: rephrase question: grouping and sub grouping Hi All, It’s me again; earlier question was not in proper phrase, so here I have rephrase again. I need to associate the parent child grouping and sub grouping; I have renamed the id to parent to understand better.
Below xml result is expected as: · Top
<root> <Table> <folder_id>0</folder_id> <parent_id>0</parent_id> <folder_name>Top</folder_name> </Table> <Table> <folder_id>1</folder_id> <parent_id>0</parent_id> <folder_name>Level - 1</folder_name> </Table> <Table> <folder_id>2</folder_id> <parent_id>1</parent_id> <folder_name>Level - 1:1</folder_name> </Table> <Table> <folder_id>3</folder_id> <parent_id>1</parent_id> <folder_name>Level - 1:2</folder_name> </Table> <Table> <folder_id>4</folder_id> <parent_id>0</parent_id> <folder_name>Leve - 2</folder_name> </Table> <Table> <folder_id>5</folder_id> <parent_id>4</parent_id> <folder_name>Level - 2:1</folder_name> </Table> <Table> <folder_id>6</folder_id> <parent_id>5</parent_id> <folder_name>Level - 2:1:1</folder_name> </Table> <Table> <folder_id>7</folder_id> <parent_id>6</parent_id> <folder_name>Level - 2:1:1:1</folder_name> </Table> <Table> <folder_id>8</folder_id> <parent_id>5</parent_id> <folder_name>Level - 2:2</folder_name> </Table> </root> Anand Singh Bisht Capco O: +91 80 5199 7200 F: +91 80 5199 7201 M: +91 98864 97309 W: http://www.capco.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|