import org.jsoup.*;
import org.w3c.dom.Document;
public class jsoup {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String html = "<html><head><title>First parse</title></head>"
+ "<body><p id='xxx'>Parsed HTML into a doc.</p></body></html>";
Document doc = (Document)Jsoup.parse(html);
Element el = doc.getElementById("xxx");
}
}
Когда я запускаю код выше, я получаю ошибку
: элемент не может быть преобразован в тип в строке "Element el = doc.getElementById (" xxx ");"
Вы можете мне помочь?