Jump to content

Grouping Elements in XML


gaza165

Recommended Posts

Can someone tell me the best way to group elements in an XML file?

 

	<item>
             <title>Event 1</title>
             <dc:date>2010-09-25T01:00:00+01:00</dc:date>
             <dc:date>2010-10-02T01:00:00+01:00</dc:date>
             <dc:date>2010-10-09T01:00:00+01:00</dc:date>
</item>

<item>
             <title>Event 2</title>
             <dc:date>2010-09-25T01:00:00+01:00</dc:date>
             <dc:date>2010-10-02T01:00:00+01:00</dc:date>
             <dc:date>2010-10-09T01:00:00+01:00</dc:date>
</item>

 

Above is an example of what im trying to do and below is what i want the output to be

 


   25th September 2010

                   Event 1
                   Event 2

   2nd October 2010

                    Event 1
                    Event 2

 

 

And so on, can anyone point me in the right direction on where to start looking to do something like this in PHP.

 

Thanks

 

Garry

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.