Thread: Grouping xmls
View Single Post
 
Old July 28th, 2008, 04:06 PM
sac sac is offline
Registered User
 
Join Date: Jul 2008
Location: gurgaon, haryana, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Grouping xmls

Hi all

I am trying to combine 2 or more xmls having same tags to a single xml.
Following is my xml:
<root>
    <data>
        <row>
            <id>1</id>
            <address>368 hbs</address>
            <image>1.jpg</image>
        </row>
        <row>
            <id>1</id>
            <address>368 hbs</address>
            <image>2.jpg</image>
        </row>
        <row>
            <id>2</id>
            <address>407 hbs</address>
            <image>1.jpg</image>
        </row>
    </data>
</root>

I want it to be grouped by id. Like first and second row (having same id) get combine to form one xml etc....

Please help.....

Thanks
Sac