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

Re: From filepaths to XML hierarchy

Subject: Re: From filepaths to XML hierarchy
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 27 Dec 2011 06:02:40 -0800
Re:  From filepaths to XML hierarchy
Seems similar to this question which I answered recently on SO:


On Tue, Dec 27, 2011 at 5:25 AM, Jesper Tverskov <jesper@xxxxxxxxxxx> wrote:
> Hi List
> How can I transform a list of filepaths into a consolidated XML hierarchy?
> Let us reduce the problem to the following input file:
> <x>
> B  <a><b><c/></b></a>
> B  <a><b><d/></b></a>
> B  <a><b><e/></b></a>
> B  <h><i/></h>
> B  <h><j/></h>
> </x>
> How can I transform it into the following output:
> <x>
> B  <a><b><c/><d/><e/></b></a>
> B  <h><i/><j/></h>
> </x>
> Cheers
> Jesper Tverskov

Dimitre Novatchev
Truly great madness cannot be achieved without significant intelligence.
To invent, you need a good imagination and a pile of junk
Never fight an inanimate object
To avoid situations in which you might make mistakes may be the
biggest mistake of all
Quality means doing it right when no one is looking.
You've achieved success in your field when you don't know whether what
you're doing is work or play
Facts do not cease to exist because they are ignored.
I finally figured out the only reason to be alive is to enjoy it.

Current Thread


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.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
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.