ITunes < Javawsxml < TWiki

TWiki . Javawsxml . ITunes

Apple iTunes Plug In

This plug in is for use with iTunes Music Service podcast listings.

The latest version is 0.4 available.

Sample Usage

        SyndFeedInput input = new SyndFeedInput();
        SyndFeed syndfeed = input.build(new XmlReader(feed.toURL()));

        Module module = syndfeed.getModule("http://www.itunes.com/dtds/podcast-1.0.dtd");
        FeedInformation feedInfo = (FeedInformation) module;
        
        System.out.println( feedInfo.getImage() );
        System.out.println( feedInfo.getCategory() );
        
        // Or to create a feed..
        
        ArrayList modules = new ArrayList();
        EntryInformation e = new EntryInformationImpl();
        e.setDuration( new Duration( 10000 ) );
        modules.add( e );
        syndEntry.setModules( modules );

Changes:

0.4

0.3

Added support for the "other" case of podcasts. It will now correctly parse all lowercase URIs as wells as the original mixed case URIs All generated feeds use the lowercase URI. Fixed some entity problems related to the apple summary tag.

-- Main.kebernet - 23 Apr 2006

----- Revision r3 - 20 Aug 2006 - 22:28:21 - Main.kebernet