tika-user  

Re: Simple implementation help

Alex Ott
Thu, 03 Dec 2009 11:06:08 -0800

Hello David

david.stu...@progressivealliance.co.uk  at "Thu, 3 Dec 2009 20:00:56 +0100 
(CET)" wrote:
 d> Hi,

 d> I am trying to implement a really simple example of the tika html to xhtml 
parser here is what I have so far. I have tried two
 d> different implementations but neiter seem to produce any results. I have 
included the sample html as well.

 d> Thanks for your help
 d>    
 d>             BodyContentHandler handler = new BodyContentHandler();
 d>             AutoDetectParser parser = new AutoDetectParser();

        context = new ParseContext();
        context.set(Parser.class, parser);
        parser.parse(input, handler, metadata, context);



-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/        http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/