Fields and methods of the jala.HtmlDocument class.
Construct a new HTML document.
parameters
String | source | The HTML source code. |
methods
- scrape(xpathExpr)
- getLinks()
- getAll(elementName)
- toString()
Methods
Get all document nodes from an XPath expression.
parameters
String | xpathExpr | An XPath expression. |
returns
A list of HTML elements. |
Get all link elements of the HTML document.
returns
A list of link elements. |
Retrieves all elements by name from the document.
The returned object structure is compatible for usage
in {@link jala.XmlWriter}.
parameters
String | elementName | The name of the desired element |
returns
The list of available elements in the document |
Get a string representation of the HTML document.
returns
A string representation of the HTML document. |