org.xwt.translators
Class HTML

java.lang.Object
  extended byorg.xwt.translators.HTML

public class HTML
extends java.lang.Object

This class parses an InputStream containing HTML and returns it as an XWT DOM tree. Each HTML Element is returned as a struct, with the following members: Since HTML may have multiple top level elements (unlike XML), this class will search all top level elements for one with a tag name 'html'. If such a node is found, only it is returned. If no top-level element has the tag name 'html', such a node is fabricated, and all top level elements become the children of that node, which is then returned.


Constructor Summary
HTML()
           
 
Method Summary
static java.lang.String expandEntities(java.lang.String s)
          Expands all SGML entities in string s
static JS parseReader(java.io.Reader r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTML

public HTML()
Method Detail

parseReader

public static JS parseReader(java.io.Reader r)
                      throws java.io.IOException
Throws:
java.io.IOException

expandEntities

public static java.lang.String expandEntities(java.lang.String s)
                                       throws java.io.IOException
Expands all SGML entities in string s

Throws:
java.io.IOException