Java HTML Jsoup Element findAElementsWithId(Elements elements, String id)

Here you can find the source of findAElementsWithId(Elements elements, String id)

Description

find A Elements With Id

License

Open Source License

Declaration

public static Elements findAElementsWithId(Elements elements, String id) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.jsoup.select.Elements;

public class Main {
    public static Elements findAElementsWithId(Elements elements, String id) {
        StringBuilder query = new StringBuilder();
        query.append("a[id=");
        query.append(id);/*from  ww  w .  j  av  a  2  s. co  m*/
        query.append("]");
        Elements found = elements.select(query.toString());
        return found;
    }
}

Related

  1. countElements(Node parent)
  2. createSafeElement(Element sourceEl)
  3. elementsToList(Elements elements)
  4. extractTextWithNewlines(Element elem)
  5. filterElementsByTag(List results, Element element, Set tagSet)
  6. findAllNodesBefore(Element firstChapter)
  7. findElementsByTag(Element element, String... tags)
  8. findFirstByTag(Element element, String tag)
  9. findNextElementSibling(final Element startElement, final Predicate condition)