- From: Phil Ritchie <philr@vistatec.ie>
- Date: Thu, 13 Sep 2012 15:22:52 +0100
- To: "Yves Savourel" <ysavourel@enlaso.com>
- Cc: "Felix Sasaki" <fsasaki@w3.org>, "Jirka Kosek" <jirka@kosek.cz>, "public-multilingualweb-lt@w3.org" <public-multilingualweb-lt@w3.org>
Cool, thanks. That can be tonight's insomnia project. :-) Phil On 13 Sep 2012, at 15:21, "Yves Savourel" <ysavourel@enlaso.com> wrote: > Hi Phil, > > > Are there any code samples for doing this? > > I couldn't find any on the web site. > > It's quite easy to use the library. > > Create a HtmlDocumentBuilder object: > > HtmlDocumentBuilder docBuilder = new HtmlDocumentBuilder(); > > Then parse the input document: > > Document doc = docBuilder.parse(new File("myFile.html")); > > And your DOM tree is in doc. > After that it's normal XML DOM handling. > > If it's any help, the source code for our filter is here: > http://code.google.com/p/okapi/source/browse/okapi/filters/its/src/main/java/net/sf/okapi/filters/its/html5/HTML5Filter.java?name=html5 > > cheers, > -yves > > ************************************************************ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender immediately by e-mail. www.vistatec.com ************************************************************
Received on Thursday, 13 September 2012 14:23:26 UTC