H
Helmchen
Gast
Hallo,
ich will von jedem <item> mir den title,link,description holen. Laut meiner Ausgabe habe ich aber
den title, link und description von dem <channel> geholt... wie greife ich mit der getXX methode auf ein xml-element <item> zu ???
Ausgabe:
ich will von jedem <item> mir den title,link,description holen. Laut meiner Ausgabe habe ich aber
den title, link und description von dem <channel> geholt... wie greife ich mit der getXX methode auf ein xml-element <item> zu ???
Code:
public class FeedReader
{
@SuppressWarnings("unchecked")
public static void main(String[] args) {
try {
URL feedUrl = new URL("http://www.soft32.com/rss/68-1-0-1.xml");
SyndFeedInput input = new SyndFeedInput();
SyndFeed feed = input.build(new XmlReader(feedUrl));
SyndFeedOutput output = new SyndFeedOutput();
output.output(feed,new PrintWriter(System.out));
System.out.println("Thats the title: " + feed.getTitle());
System.out.println("Thats the link: " + feed.getLink());
System.out.println("Thats the description: " + feed.getDescription());
} catch (Exception e) {
e.printStackTrace();
}
}
}
Ausgabe:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
<channel>
<title>Soft32.com - Windows - New Releases</title>
<link>http://www.soft32.com/</link>
<description>Soft32.com - Windows - New Releases</description>
<language>en-us</language>
<copyright>Copyright 2001-2007 ITNT</copyright>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<category>Software</category>
<dc:subject>Software</dc:subject>
<dc:date>2008-05-07T18:38:56Z</dc:date>
<dc:language>en-us</dc:language>
<dc:rights>Copyright 2001-2007 ITNT</dc:rights>
<image>
<title>Soft32 - Latest software downloads</title>
<url>http://www.soft32.com/images/logo.jpg</url>
<link>http://www.soft32.com/</link>
</image>
<item>
<title>Power MP4 iPod PSP 3GP AVI MPG WMV Video Converter 7.6.5</title>
<link>http://www.soft32.com/download_191008.html</link>
<description>updated on Wed, 07 May 2008 13:33:58 CDT
- Convert Video files to AVI, MPG, WMV, MOV, QT, MP4, 3GP, RM format.</description>
<category domain="http://www.soft32.com/c//Audio/2-10.html">Audio</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_191008.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>JongPuzzle 3.65</title>
<link>http://www.soft32.com/download_4600.html</link>
<description>updated on Wed, 07 May 2008 13:32:42 CDT
- JongPuzzle it is the tile solitaire game similar on mah jongg.</description>
<category domain="http://www.soft32.com/c//Games/2-15.html">Games</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_4600.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Any Video/Audio Converter 3.8.23</title>
<link>http://www.soft32.com/download_204928.html</link>
<description>updated on Wed, 07 May 2008 13:31:25 CDT
- Convert Video files to AVI, MPG, WMV, MOV, QT, MP4, 3GP, RM, FLV, SWF format.</description>
<category domain="http://www.soft32.com/c//Video/2-11.html">Video</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_204928.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Recovery for Publisher 1.0.0819</title>
<link>http://www.soft32.com/download_187403.html</link>
<description>updated on Wed, 07 May 2008 13:26:00 CDT
- Recovery for Publisher fixes damaged Microsoft Publisher files (.PUB)</description>
<category domain="http://www.soft32.com/c//System_Utilities/2-6.html">System Utilities</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_187403.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>OE-Mail Recovery 1.7.16</title>
<link>http://www.soft32.com/download_3976.html</link>
<description>updated on Wed, 07 May 2008 13:15:17 CDT
- Repair Outlook Express folders and dbx files. Recover deleted messages.</description>
<category domain="http://www.soft32.com/c//Internet/2-5.html">Internet</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_3976.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Elite Clock Screensaver ( InfoClock ) 1.5.472</title>
<link>http://www.soft32.com/download_192225.html</link>
<description>updated on Wed, 07 May 2008 13:04:08 CDT
- Original analog clock, date, a monthly calendar, digital clock, time zones.</description>
<category domain="http://www.soft32.com/c//Desktop_Management/2-16.html">Desktop Management</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_192225.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Easy Audio Recorder 3.2.68</title>
<link>http://www.soft32.com/download_190038.html</link>
<description>updated on Wed, 07 May 2008 13:01:09 CDT
- Record stream audio, voice, cassette tape to mp3, wav, wma, MP4 files.</description>
<category domain="http://www.soft32.com/c//Audio/2-10.html">Audio</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_190038.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Passwords by Mask 1.57</title>
<link>http://www.soft32.com/download_1427.html</link>
<description>updated on Wed, 07 May 2008 12:58:23 CDT
- Generate random passwords by mask.</description>
<category domain="http://www.soft32.com/c//Security/2-2.html">Security</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_1427.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Bluefox PSP Video Converter 2.0.0805</title>
<link>http://www.soft32.com/download_216361.html</link>
<description>updated on Wed, 07 May 2008 12:57:38 CDT
- It is can help you to convert almost all popular video.</description>
<category domain="http://www.soft32.com/c//Video/2-11.html">Video</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_216361.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Printer Anywhere 1.1.25</title>
<link>http://www.soft32.com/download_192140.html</link>
<description>updated on Wed, 07 May 2008 12:56:25 CDT
- PrinterAnywhere lets you share your printer with someone else, or vice versa</description>
<category domain="http://www.soft32.com/c//System_Utilities/2-6.html">System Utilities</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_192140.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>A-Z WMV Video Converter 4.65</title>
<link>http://www.soft32.com/download_195541.html</link>
<description>updated on Wed, 07 May 2008 12:51:03 CDT
- Convert avi, divx, xvid, rm, mov, mpeg, wmv to wmv</description>
<category domain="http://www.soft32.com/c//Video/2-11.html">Video</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_195541.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Flash Recovery Toolbox 1.0.5</title>
<link>http://www.soft32.com/download_194472.html</link>
<description>updated on Wed, 07 May 2008 12:50:55 CDT
- Recover deleted photos, images, audio and video records, audio, MP3, WNA files</description>
<category domain="http://www.soft32.com/c//System_Utilities/2-6.html">System Utilities</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_194472.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Regrecover 1.2</title>
<link>http://www.soft32.com/download_210377.html</link>
<description>updated on Wed, 07 May 2008 12:49:21 CDT
- Export or rebuild corrupt NT based registry files</description>
<category domain="http://www.soft32.com/c//System_Utilities/2-6.html">System Utilities</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_210377.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Bestel DVD to 3GP Converter 1.2.2</title>
<link>http://www.soft32.com/download_219221.html</link>
<description>updated on Wed, 07 May 2008 08:39:57 CDT
- Powerful and Easy backup your DVD to 3gp with a few clicks</description>
<category domain="http://www.soft32.com/c//Video/2-11.html">Video</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_219221.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Advanced Installer for Java 6.3</title>
<link>http://www.soft32.com/download_195866.html</link>
<description>updated on Wed, 07 May 2008 12:37:15 CDT
- Windows Installer authoring tool with built-in support for Java applications</description>
<category domain="http://www.soft32.com/c//Developer_Tools/2-3.html">Developer Tools</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_195866.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Advanced Installer Professional 6.3</title>
<link>http://www.soft32.com/download_195867.html</link>
<description>updated on Wed, 07 May 2008 12:36:56 CDT
- Advanced Installer 6.3 is a Windows Installer authoring tool.</description>
<category domain="http://www.soft32.com/c//Developer_Tools/2-3.html">Developer Tools</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_195867.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>MemoAccelerator 1.1.1</title>
<link>http://www.soft32.com/download_218976.html</link>
<description>updated on Wed, 07 May 2008 12:19:39 CDT
- MemoAccelerator is a program, that allows you to improve your language skills.</description>
<category domain="http://www.soft32.com/c//Home_and_Education/2-14.html">Home & Education</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_218976.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>AML Power Video Converter 5.9.130</title>
<link>http://www.soft32.com/download_187055.html</link>
<description>updated on Wed, 07 May 2008 12:18:50 CDT
- Convert Video files to AVI, MPG, WMV, MOV, QT format.</description>
<category domain="http://www.soft32.com/c//Video/2-11.html">Video</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_187055.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>WinMPG Video Convert 7.4.0</title>
<link>http://www.soft32.com/download_8047.html</link>
<description>updated on Wed, 07 May 2008 12:07:46 CDT
- WinMPG Video Convert is a best Video Converter to convert avi mpeg mov.</description>
<category domain="http://www.soft32.com/c//System_Utilities/2-6.html">System Utilities</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_8047.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Maze Book 2: Lost in the Medieval World 1.02.61</title>
<link>http://www.soft32.com/download_207270.html</link>
<description>updated on Wed, 07 May 2008 12:02:09 CDT
- An endless supply of mazes for kids in Maze Book 2 by Dataware.</description>
<category domain="http://www.soft32.com/c//Games/2-15.html">Games</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_207270.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Webpage Thumbnailer 1.6</title>
<link>http://www.soft32.com/download_218525.html</link>
<description>updated on Wed, 07 May 2008 11:57:55 CDT
- Convert HTML files to image, generate screenshots/thumbnails of websites.</description>
<category domain="http://www.soft32.com/c//Internet/2-5.html">Internet</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_218525.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>AML Fast Audio Converter 1.1.189</title>
<link>http://www.soft32.com/download_187657.html</link>
<description>updated on Wed, 07 May 2008 12:01:44 CDT
- Convert various audio formats WAV, MP3, OGG, WMA to WAV, MP3, OGG, APE or WMA</description>
<category domain="http://www.soft32.com/c//Audio/2-10.html">Audio</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_187657.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Atom Time Synchronizer 3.9.2.7</title>
<link>http://www.soft32.com/download_8492.html</link>
<description>updated on Wed, 07 May 2008 12:03:04 CDT
- Atom Time Synchronizer - Keep your PC clock accurately synchronized</description>
<category domain="http://www.soft32.com/c//System_Utilities/2-6.html">System Utilities</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_8492.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>AKRAM Media Creator 1.11.139</title>
<link>http://www.soft32.com/download_77863.html</link>
<description>updated on Wed, 07 May 2008 11:52:51 CDT
- Create Data CD & DVD , Craete Audio & MP3 CD, Audio Editor, Audio Converter...</description>
<category domain="http://www.soft32.com/c//System_Utilities/2-6.html">System Utilities</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_77863.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
<item>
<title>Collection Studio 2.47</title>
<link>http://www.soft32.com/download_79441.html</link>
<description>updated on Wed, 07 May 2008 11:59:43 CDT
- Collection Studio - Best Collectors Software for Any Collection!</description>
<category domain="http://www.soft32.com/c//Home_and_Education/2-14.html">Home & Education</category>
<pubDate>Wed, 07 May 2008 18:38:56 GMT</pubDate>
<guid isPermaLink="false">http://www.soft32.com/download_79441.html</guid>
<dc:date>2008-05-07T18:38:56Z</dc:date>
</item>
</channel>
</rss>
Code:
Thats the title: Soft32.com - Windows - New Releases
Thats the link: [url]http://www.soft32.com/[/url]
Thats the description: Soft32.com - Windows - New Releases