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
https://forums.phpfreaks.com/topic/214289-grouping-elements-in-xml/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.