Package org.exoplatform.services.rss.parser

Examples of org.exoplatform.services.rss.parser.DefaultRSSItem


   {
      URL url = new URL("http://www.lagazettedescommunes.com/RSS/generateRSS.asp");
      RSSDocument<DefaultRSSChannel, DefaultRSSItem> document = parser_.createDocument(url.toURI(), "utf-8");
      if (document != null)
      {
         DefaultRSSItem firstItem = document.getItem(0);
         System.out.println("Creator: " + firstItem.getCreator());
         System.out.println("Description: " + firstItem.getDesc());
         System.out.println("Link: " + firstItem.getLink());
         //Check if the link is not bound in a CDATA
         assertTrue("Link is not wrapped in a CDATA ", !isWrappedInCDATA(firstItem.getLink()));
      }
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.rss.parser.DefaultRSSItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.