Jala 1.3

Class jala.HtmlDocument

Object
   |
   +--jala.HtmlDocument

class jala.HtmlDocument


This class provides easy access to the elements of an arbitrary HTML document. By using TagSoup, Dom4J and Jaxen even invalid HTML can be parsed, turned into an object tree and easily be processed with XPath expressions.
Defined in HtmlDocument.js


Constructor Summary
jala.HtmlDocument (<String> source)
            Construct a new HTML document.
 
Method Summary
 Array getAll(<String> elementName)
           Retrieves all elements by name from the document.
 Array getLinks()
           Get all link elements of the HTML document.
 org.dom4j.tree.DefaultElement scrape(<String> xpathExpr)
           Get all document nodes from an XPath expression.
 String toString()
           Get a string representation of the HTML document.

Constructor Detail

jala.HtmlDocument

jala.HtmlDocument(<String> source)

Method Detail

getAll

Array getAll(<String> elementName)

getLinks

Array getLinks()

scrape

org.dom4j.tree.DefaultElement scrape(<String> xpathExpr)

toString

String toString()

Jala 1.3

Documentation generated by JSDoc on Tue Jan 8 15:45:31 2008