You cannot post messages because only members can post, and you are not currently a member.
Description:
General discussion (users and developers) for the jsoup HTML parser.
|
|
|
Select Elements by font-size css attribute
|
| |
Hello, i want to select Elements by it's general css font-size attribute. I do not want to read out its style="" tag, because it even could have a class which gives a specific font-size. So i am looking for a way to select those items, but i could not find any examples or documentations about this.... more »
|
|
Redirects on same domain
|
| |
Well, if we have a domain name: doc = Jsoup.connect("[link]").followRedirects(true).get() ; doc.baseUri(); // [link] and all non-existing pages are redirected to main page, not to 404: doc = Jsoup.connect("[link]").followRedirects(true).get() ;... more »
|
|
Visiting a DOM Tree in Depth First Order using Jsoup
|
| |
I am writing code to extract texts from web page. So in this context I need to traverse the DOM tree of each of the HTML element of the page in Depth First Order in order to extract the texts at the leaves. But being a new to Jsoup, I don't know how to do that. So can anyone give me suggestion how... more »
|
|
Parsing a JSF Page
|
| |
Hi, I am using jsoup to parse JSF pages. It is working quite well except for few issues. One of the issues was that if a value jsf tag has a complex value binding with quotes, the jsoup parser was incorrectly parsing the attribute. E.g. <h:outputText value="myMap[\"key\"]"/>. I had to make a small change in the jsoup parser to handle this case.... more »
|
|
IsInstanceof not working with Jsoup on railo
|
| |
Hi, probably I discovered a little bug. I'm running a linux server with tomcat and Railo. If I try this simple code: check = ""; jSoupClass = createObject( "java", "org.jsoup.Jsoup" ); if(IsInstanceOf(jSoupClass,"or g.jsoup.Jsoup")){ check = "ok"; ... writeDump(check ); If I run this simple code the var "check" is always empty. I run this... more »
|
|
Problem with table and hidden
|
| |
Hello, I'm facing a problem with JSoup 1.7.2 . The sample code of the problem is below: ------------------------------ ------ *import org.jsoup.Jsoup;* *import org.jsoup.nodes.Document;* * * *public class Main {* * * * static final String html;* * static {* * StringBuilder sb = new StringBuilder();* * sb.append("<html><body>");*... more »
|
|
Jsoup is completing tags only by looking at < char which may be an input..
|
| |
Hi , I need urgent help. Please let me know how I can skip this kind of scenario. I have an HTML where I input a value <adsjdja When Jsoup parses this HTML it consider it as a tag and completes it by adding a attribute. HTML code : <td><adhadj</td></tr> HTML code after Jsoup parses it : <td><adhadj< d=""></adhadj<></td></tr>... more »
|
|
Line Numbers
|
| |
Is it possible to get line numbers out of jsoup? That is, given an Element, I wish to know what line contained its opening tag.
|
|
Problem with escaping url parameters
|
| |
I'm trying to add a url parameter to an existing link in the href attribute. When I output the html though the parameter is escaped. Example Document exDoc = Jsoup.parse("<a href=\"/index.php?foo=1&bar=2\ ">Foo bar link</a>"); System.out.println(exDoc.html( )); outputs <html>... more »
|
|
|