Professional web hosting - item.setPubDate(date); channel.addItem(item); System.out.println(rss.makeTextDocument()); } catch (Exception e) {

item.setPubDate(date); channel.addItem(item); System.out.println(rss.makeTextDocument()); } catch (Exception e) { e.printStackTrace(); } } } Try It Out Creating a Feed Assuming you have already downloaded Relaxer and run it on rss2sample.xml, the following steps will generate some RSS: 1. Enter (or download) the previous code, saving it as Rss2Create.java in the same folder as the Relaxer-generated files. 2. Open a command window in that folder and type the following: javac -classpath . Rss2Create.java This will compile Rss2Create along with the Relaxer-generated classes. 3. Now type the following: java -classpath . Rss2Create This will run the mini-application, and you should see something like this: C:relaxerbin>java -classpath . Rss2Create



Wed, 4 Aug 2004 12:13:00 CEST
Reformatted, this is the same as:


262 Chapter 20
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.

Leave a Reply