IHTMLParser parser = HTMLParserFactory.createHTMLParser();
parser.parse(InputStream is);
parser.parse(InputStream is, String encoding);
parser.parseSwitchEnc(*);
Document doc = parser.getDocument();
The resulting HTML Document implements org.w3c.dom.html Interface.
(See API document for more details.)
In org.eclipse.actf.core plugin, several DOM utilities are available
org.eclipse.actf.util.dom.DomPrintUtil | Utility to convert DOM into String |
org.eclipse.actf.util.dom.NodeIteratorImpl | DOM NodeIterator implementation |
org.eclipse.actf.util.dom.TreeWalkerImpl | DOM TreeWalker implementation |
org.eclipse.actf.util.xpath.XPathService | Utility for XPath evaluation (Instance can be obtained from XPathServiceFactory) |