[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

rephrase question: grouping and sub grouping

  • To: <xml-dev@l...>
  • Subject: rephrase question: grouping and sub grouping
  • From: "Bisht Anand" <Anand.Bisht@c...>
  • Date: Sun, 18 Dec 2005 10:51:34 +0530
  • Thread-index: AcYDkulRHto0iFN9QKSanLbzFFiIKg==
  • Thread-topic: rephrase question: grouping and sub grouping

rephrase question
Title: rephrase question: grouping and sub grouping

Hi All,

Its 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
o       Level – 1
§       Level – 1:1
§       Level – 1:2
o       Level – 2
§       Level – 2:1
·       Level – 2:1:1
·       Level – 2:1:1:1
§       Level – 2:2


<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>


Thanks and regards

Anand Singh Bisht

Capco

O:      +91 80 5199 7200

F:      +91 80 5199 7201

M:              +91 98864 97309

E:              anand.singh@c... 

W:      http://www.capco.com


************************************************************************
The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorized. If you are not
an intended recipient, please notify the sender of this email
immediately. You should not copy, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com/

************************************************************************

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.