Package org.jsoup.nodes

Examples of org.jsoup.nodes.Document.children()


  private String extractFeedUrl(String html, String baseUri) {
    String foundUrl = null;

    Document doc = Jsoup.parse(html, baseUri);
    String root = doc.children().get(0).tagName();
    if ("html".equals(root)) {
      Elements atom = doc.select("link[type=application/atom+xml]");
      Elements rss = doc.select("link[type=application/rss+xml]");
      if (!atom.isEmpty()) {
        foundUrl = atom.get(0).attr("abs:href");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.