xsl-list
[Top] [All Lists]

how to group same type nodes together?

2003-12-23 14:47:10
Hi,

If I have a xml file:

<parent>
    <child1>child1</child1>
    <child2>child2</child2>
    <child3>child3</child3>
    <child2>child2</child2>
    <child1>child1</child1>
</parent>

I want to turn it into:

<parent>
    <child1>child1</child1>
    <child2>child2</child2>
    <child2>child2</child2>
    <child3>child3</child3>
    <child1>child1</child1>
</parent>

How can I do it?

regards,

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>