Re: HTML5+ITS validator

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