W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

Re: adding tags in JTidy

From: Michael Ryan Bannon <mrbannon@student.math.uwaterloo.ca>
Date: Thu, 23 Aug 2001 13:49:54 -0400
Message-ID: <3B854242.B343E9A0@student.math.uwaterloo.ca>
To: "McCay, Tim" <McCayT@InteliHealth.com>
CC: Chunbo Shao <cxs0187@omega.uta.edu>, html-tidy@w3.org
never tried that...I don't see why that wouldn't work...but you still have to
pass an InputStream, right?

"McCay, Tim" wrote:

> Since everyone is talking about jtidy here.
>
> Has anyone used jtidy and passed the html to be validated a string parameter
> instead of a file or url like in the example below?
>
> Thanks,
> Tim
>
> -----Original Message-----
> From: Michael Ryan Bannon [mailto:mrbannon@student.math.uwaterloo.ca]
> Sent: Thursday, August 23, 2001 1:22 PM
> To: Chunbo Shao
> Cc: html-tidy@w3.org
> Subject: Re: adding tags in JTidy
>
> This is what I did (using JTidy).
> After finding out what tags I needed to add (dynamically), I wrote a file
> called "J:/config.txt" and did the following:
>
>    tidy.setConfigurationFromFile("J:/config.txt");
>    document = tidy.parseDOM(this.url.openStream(), this.outputStream);
>
> The config file was simply one line:
>
>     new-inline-tags: noindex
>
> Where "noindex" was the tag I wanted JTidy to accept.
> Hope that helps,
>
> Ryan
>
> Chunbo Shao wrote:
>
> > Hi, Michael
> >
> > thanks for reply. Just now, you said you are using "config" to add tags.
> > It is in tidy written not by java, is it?
> >
> > Because i didn't find "config" in JTidy yet.
> >
> > Chunbo
> >
> > On Mon, 20 Aug 2001, Michael Ryan Bannon wrote:
> >
> > > Hello all,
> > >
> > > i know in HTMLTidy you can set your config file to recognize unknown
> > > tags by specifying those tags.  Is there a similar option in JTidy?  I
> > > couldn't find one, but such an option would be great.
> > >
> > > thanks,
> > >
> > > ryan
> > >
> > >
Received on Thursday, 23 August 2001 13:46:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:46 GMT