Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 20th, 2006, 11:53 PM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jonsiu
Default How to recurse a dynamic depth XML file

Hello, Here's my problem...

I have this XML:
Note: the depth is dynamic.

<root>
    <level1First>
        <level2First>
            <level3First>
                <level4First>
                    <level5First/>
                    <level5Second/>
                    <level5Third/>
                    <level5Fourth/>
                </level4First>
            </level3First>
        </level2First>
        <level2Second>
            <level3First/>
            <level3Second/>
        </level2Second>
        <level2Third>
        </level2Third>
    </level1First>
</root>

I want an output to look like this..

level5First
level5Second
level5Third
level5Fourth
  level4First
    level3First
      level2First
level3First
level3Second
  level2Second
level2Third


--Thanks. :)



jon





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass the dynamic XML file name to XSL jle XSLT 3 March 13th, 2008 04:20 PM
collection Function thats uses recurse bonekrusher XSLT 2 November 27th, 2007 08:31 AM
Bitmap color-depth issue warlock7 Visual C++ 2005 0 July 25th, 2007 12:55 PM
Dynamic XML file from asp includes jfergy Classic ASP Professional 0 April 7th, 2006 02:20 AM
Depth First Search gbilios C++ Programming 3 June 8th, 2004 12:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.