You can subscribe to this list here.
2004 |
Jan
(5) |
Feb
(6) |
Mar
(11) |
Apr
(6) |
May
(9) |
Jun
(5) |
Jul
(8) |
Aug
(3) |
Sep
(2) |
Oct
(16) |
Nov
(16) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(8) |
Feb
(7) |
Mar
(6) |
Apr
(8) |
May
(5) |
Jun
(9) |
Jul
(4) |
Aug
(4) |
Sep
(2) |
Oct
(5) |
Nov
(5) |
Dec
(2) |
2006 |
Jan
(9) |
Feb
(5) |
Mar
(2) |
Apr
(9) |
May
(1) |
Jun
(4) |
Jul
(1) |
Aug
(9) |
Sep
(2) |
Oct
(5) |
Nov
(5) |
Dec
|
2007 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
(5) |
Jun
(1) |
Jul
(2) |
Aug
(4) |
Sep
(3) |
Oct
(2) |
Nov
(3) |
Dec
|
2008 |
Jan
(4) |
Feb
(7) |
Mar
(3) |
Apr
(6) |
May
|
Jun
(1) |
Jul
(3) |
Aug
(3) |
Sep
(5) |
Oct
(1) |
Nov
(3) |
Dec
(3) |
2009 |
Jan
(2) |
Feb
(4) |
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
(16) |
Aug
(12) |
Sep
(10) |
Oct
|
Nov
(2) |
Dec
(4) |
2010 |
Jan
(3) |
Feb
(1) |
Mar
(1) |
Apr
(16) |
May
(4) |
Jun
(1) |
Jul
(15) |
Aug
(8) |
Sep
(14) |
Oct
(5) |
Nov
(1) |
Dec
|
2011 |
Jan
(2) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
(6) |
Jul
|
Aug
|
Sep
(1) |
Oct
(2) |
Nov
(1) |
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(7) |
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(6) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Lucas H. <ho...@pr...> - 2010-02-17 16:55:28
|
I didn't see a page on the jtidy.sourceforge.net site listing the best place to file bug reports. Is the bug reporting tool on sourceforge the best place or this mailing list? Please CC me as I'm not subscribed to the list. -- _____________________ Lucas Holt Software Engineer PRIME research 213 S. Ashley St. Ann Arbor, MI 48104 email: ho...@pr... |
From: Chris W. <ch...@fi...> - 2010-01-20 22:20:06
|
The following HTML source causes a NullPointerException in Node.trimInitialSpace where element.parent is null. Note that it's the space(s) after the span tag that triggers the trimInitialSpace call. Yes, span inside table is not valid, but I wouldn't expect JTidy to NPE. Known issue? Workaround? Thanks. <table> <tr><td></td></tr> <span id="mySpan"> <tr><td></td></tr></span> </table> if (TidyUtils.toBoolean(element.tag.model & Dict.CM_INLINE) && !TidyUtils.toBoolean(element.tag.model & Dict.CM_FIELD) && element.parent.content != element) ... Thanks. -C |
From: Erik M. <eri...@gm...> - 2010-01-12 14:07:27
|
Sorry for double posting on jtidy-user and jtidy-devel I think JTidy needs a SAX interface, here is a simple one that uses the JTidy lexer. It doesn't validate but closes tags that isn't closed in HTML, it uses the tag table to see if the tag is expected to have content. If it meets a close tag it search for a matching open tag in a stack of parent nodes and closes unclosed tags. There is an example main method at the bottom. The reason you might want a SAX interface is that it streams the result, which means you can parse the result as it loads and you don't have to keep the entire document in memory which is nice in mobile devices for example or if you need to parse really large html documents. http://dl.dropbox.com/u/16123/Android/JTidy/JTidySAXParserFactory.java Interesting?? -- /erik martino |
From: Thomas P. <th...@ra...> - 2009-12-19 20:26:53
|
Thank you very much. That solved my problem! Thomas Am Sat, 19 Dec 2009 11:54:34 -0800 (PST) schrieb Adrian Sandor <ad...@ya...>: > Hi, this seems to be a bug in the current trunk code. It's already fixed in the CodeUpdateAndJava5 branch, but that's not released yet. You could use that branch (from svn), or backport the fix (method Clean.verifyHTTPEquiv)... or ask me to do it and wait. > > Regards, > Adrian > > > --- On Sun, 12/20/09, Thomas Porschberg <th...@ra...> wrote: > > > From: Thomas Porschberg <th...@ra...> > > Subject: [Jtidy-user] http-equiv meta attribute > > To: jti...@li... > > Date: Sunday, December 20, 2009, 3:26 AM > > Hi, > > > > I use jtidy integrated in silkpage ( http://silkpage.markupware.com/ ). > > I want migrate my HTML output pages from ISO-8859-1 to > > UTF-8. > > > > Therefore I added the line > > output-encoding: utf8 > > to my tidy.properties file. > > > > But the HTML-output still contains the line: > > > > <meta http-equiv="Content-Type" content="text/html; > > charset=ISO-8859-1" /> > > > > but with the new UTF-8 encoding it should be: > > > > <meta http-equiv="Content-Type" content="text/html; > > charset=UTF-8" /> > > > > What is the proper way to change this line? > > Can it be done by configuration? > > > > Best regards, > > Thomas > > > > -- > > http://www.randspringer.de > > > > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Jtidy-user mailing list > Jti...@li... > https://lists.sourceforge.net/lists/listinfo/jtidy-user -- http://www.randspringer.de |
From: Adrian S. <ad...@ya...> - 2009-12-19 19:54:44
|
Hi, this seems to be a bug in the current trunk code. It's already fixed in the CodeUpdateAndJava5 branch, but that's not released yet. You could use that branch (from svn), or backport the fix (method Clean.verifyHTTPEquiv)... or ask me to do it and wait. Regards, Adrian --- On Sun, 12/20/09, Thomas Porschberg <th...@ra...> wrote: > From: Thomas Porschberg <th...@ra...> > Subject: [Jtidy-user] http-equiv meta attribute > To: jti...@li... > Date: Sunday, December 20, 2009, 3:26 AM > Hi, > > I use jtidy integrated in silkpage ( http://silkpage.markupware.com/ ). > I want migrate my HTML output pages from ISO-8859-1 to > UTF-8. > > Therefore I added the line > output-encoding: utf8 > to my tidy.properties file. > > But the HTML-output still contains the line: > > <meta http-equiv="Content-Type" content="text/html; > charset=ISO-8859-1" /> > > but with the new UTF-8 encoding it should be: > > <meta http-equiv="Content-Type" content="text/html; > charset=UTF-8" /> > > What is the proper way to change this line? > Can it be done by configuration? > > Best regards, > Thomas > > -- > http://www.randspringer.de |
From: Thomas P. <th...@ra...> - 2009-12-19 19:39:36
|
Hi, I use jtidy integrated in silkpage ( http://silkpage.markupware.com/ ). I want migrate my HTML output pages from ISO-8859-1 to UTF-8. Therefore I added the line output-encoding: utf8 to my tidy.properties file. But the HTML-output still contains the line: <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> but with the new UTF-8 encoding it should be: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> What is the proper way to change this line? Can it be done by configuration? Best regards, Thomas -- http://www.randspringer.de |
From: Senthil K. M <ms....@gm...> - 2009-12-14 12:48:32
|
can some body give sample java programs which uses the jtidy api to display the dom tree of html in xml form |
From: Adrian S. <ad...@ya...> - 2009-11-23 19:04:16
|
Hi, I never even downloaded JTidyServlet, it's a separate project and I'm mainly focusing on JTidy. I'll try to take a look, but in the meantime, if you're using an "r8-SNAPSHOT" version of JTidyServlet, you can try using an "r8-SNAPSHOT" version of JTidy with it. Adrian --- On Tue, 11/24/09, Graeme Kidd <coo...@ho...> wrote: > From: Graeme Kidd <coo...@ho...> > Subject: [Jtidy-user] NoSuchMethodError setMessageListener > To: jti...@li... > Date: Tuesday, November 24, 2009, 2:44 AM > > > Hi, > > I am currently struggling to get JTidyServlet to work. I > have placed "jtidyservlet-r8-SNAPSHOT.jar" in the > "WEB-INF/lib" folder followed by: > xercesImpl.jar > commons-logging-1.1.1.jar > jtidy-r820.jar > xml-apis.jar > > I have then palced the following config into the web.xml > file: > < servlet> > < servlet-name>JTidyServlet< > /servlet-name> > < > servlet-class>org.w3c.tidy.servlet.TidyServlet< > /servlet-class> > < /servlet> > > > < servlet-mapping> > < servlet-name>JTidyServlet< > /servlet-name> > < > url-pattern>/JTidy</url-pattern> > < /servlet-mapping> > > < filter> > < filter-name>JTidyFilter</filter-name> > < > filter-class>org.w3c.tidy.servlet.filter.JTidyFilter</filter-class> > < /filter> > > > < filter-mapping> > < filter-name>JTidyFilter< > /filter-name> > < url-pattern>*.do< > /url-pattern> > < /filter-mapping> > < filter-mapping> > < filter-name>JTidyFilter< > /filter-name> > < url-pattern>*.jsp< > /url-pattern> > < /filter-mapping> > Then when I go to a JSP page I get the following exception > > "javax.servlet.ServletException: Filter execution threw an > exception > > root cause > > java.lang.NoSuchMethodError: > org.w3c.tidy.Tidy.setMessageListener(Lorg/w3c/tidy/TidyMessageListener;)V > > org.w3c.tidy.servlet.TidyProcessor.parse(TidyProcessor.java:242) > > org.w3c.tidy.servlet.TidyProcessor.parse(TidyProcessor.java:209) > > org.w3c.tidy.servlet.filter.BufferedServletOutputStream.close(BufferedServletOutputStream.java:179) > sun.nio.cs.StreamEncoder.implClose(Unknown > Source) > sun.nio.cs.StreamEncoder.close(Unknown > Source) > java.io.OutputStreamWriter.close(Unknown > Source) > java.io.PrintWriter.close(Unknown Source) > > org.w3c.tidy.servlet.filter.BufferedServletResponse.finishResponse(BufferedServletResponse.java:248) > > org.w3c.tidy.servlet.filter.JTidyFilter.doFilter(JTidyFilter.java:244)" > > Does anyone have any idea how to resolve this? > > Thanks > > > > > > > _________________________________________________________________ > Use Hotmail to send and receive mail from your different > email accounts > http://clk.atdmt.com/UKM/go/186394592/direct/01/ > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal > Reports 2008 30-Day > trial. Simplify your report design, integration and > deployment - and focus on > what you do best, core application coding. Discover what's > new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Jtidy-user mailing list > Jti...@li... > https://lists.sourceforge.net/lists/listinfo/jtidy-user > |
From: Graeme K. <coo...@ho...> - 2009-11-23 18:45:21
|
Hi, I am currently struggling to get JTidyServlet to work. I have placed "jtidyservlet-r8-SNAPSHOT.jar" in the "WEB-INF/lib" folder followed by: xercesImpl.jar commons-logging-1.1.1.jar jtidy-r820.jar xml-apis.jar I have then palced the following config into the web.xml file: < servlet> < servlet-name>JTidyServlet< /servlet-name> < servlet-class>org.w3c.tidy.servlet.TidyServlet< /servlet-class> < /servlet> < servlet-mapping> < servlet-name>JTidyServlet< /servlet-name> < url-pattern>/JTidy</url-pattern> < /servlet-mapping> < filter> < filter-name>JTidyFilter</filter-name> < filter-class>org.w3c.tidy.servlet.filter.JTidyFilter</filter-class> < /filter> < filter-mapping> < filter-name>JTidyFilter< /filter-name> < url-pattern>*.do< /url-pattern> < /filter-mapping> < filter-mapping> < filter-name>JTidyFilter< /filter-name> < url-pattern>*.jsp< /url-pattern> < /filter-mapping> Then when I go to a JSP page I get the following exception "javax.servlet.ServletException: Filter execution threw an exception root cause java.lang.NoSuchMethodError: org.w3c.tidy.Tidy.setMessageListener(Lorg/w3c/tidy/TidyMessageListener;)V org.w3c.tidy.servlet.TidyProcessor.parse(TidyProcessor.java:242) org.w3c.tidy.servlet.TidyProcessor.parse(TidyProcessor.java:209) org.w3c.tidy.servlet.filter.BufferedServletOutputStream.close(BufferedServletOutputStream.java:179) sun.nio.cs.StreamEncoder.implClose(Unknown Source) sun.nio.cs.StreamEncoder.close(Unknown Source) java.io.OutputStreamWriter.close(Unknown Source) java.io.PrintWriter.close(Unknown Source) org.w3c.tidy.servlet.filter.BufferedServletResponse.finishResponse(BufferedServletResponse.java:248) org.w3c.tidy.servlet.filter.JTidyFilter.doFilter(JTidyFilter.java:244)" Does anyone have any idea how to resolve this? Thanks _________________________________________________________________ Use Hotmail to send and receive mail from your different email accounts http://clk.atdmt.com/UKM/go/186394592/direct/01/ |
From: Adrian S. <ad...@ya...> - 2009-09-15 10:58:35
|
Well, I tried your exact code, using jtidy-r820.jar, with this html: <html> <head> <style type="text/css"> @import url("/home/sean/dev/astraia/svn/working_build/.temp/sean/reports/20090915145511/report_1/report.css"); </style> </head> <body> <div template_id="GeneralDemogPlus"> </div> </body> </html> and this was the result: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="generator" content="HTML Tidy for Java (vers. 27 Sep 2004), see www.w3.org" /> type="text/css"> /*<![CDATA[*/ @import url("/home/sean/dev/astraia/svn/working_build/.temp/sean/reports/20090915145511/report_1/report.css"); /*]]>*/ </style> <title></title> </head> <body> <div template_id="GeneralDemogPlus"> </div> </body> </html> Adrian ________________________________ From: Sean Van Buggenum <sv...@gm...> To: Adrian Sandor <ad...@ya...> Sent: Tuesday, September 15, 2009 5:53:57 PM Subject: Re: [Jtidy-user] xhtml and the style element in the head element Hi Adrian, Yes, Here is an excerpt from the source HTML (first) and the result (second) ------------------ <html> <head> <style type="text/css"> @import url("/home/sean/dev/astraia/svn/working_build/.temp/sean/reports/20090915145511/report_1/report.css"); </style> </head> <body> <div template_id="GeneralDemogPlus"> .... becomes <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="generator" content="HTML Tidy for Java (vers. 27 Sep 2004), see www.w3.org" /> <title></title> </head> <body> <div template_id="GeneralDemogPlus"> ... On Tue, Sep 15, 2009 at 7:39 PM, Adrian Sandor <ad...@ya...> wrote: Hi, could you provide an example of html that gets handled badly by your code? > >Adrian > > |
From: Adrian S. <ad...@ya...> - 2009-09-15 09:39:59
|
Hi, could you provide an example of html that gets handled badly by your code? Adrian ________________________________ From: Sean Van Buggenum <sv...@gm...> To: jti...@li... Sent: Tuesday, September 15, 2009 1:26:46 PM Subject: Re: [Jtidy-user] xhtml and the style element in the head element Hi all, Firstly, as my first post, I'd like to say a big hello, and thank you to the developers for this fine product. I am of course trying to clean up the dodgy html that i'm producing with a java html editor i'm using. My html is actually generated and inserted into the java editor. When in the java editor, at various points in time, it needs to be cleaned by JTidy so that it still is xhtml compliant (no missing end tags, etc). However, after going through JTidy (using the Fri Jul 31 2009 23:53 snapshot/release), with the following setings (see below), my head element gets stripped, and my style element goes missing. Given my settings below, and the reason I'm using JTidy (ensure there are always end tags) what am I doing wrong (or is it my assumptions that are wrong?) and how can I fix it? Thanks to all replies. p.s Here is my JTidy code: public void cleanHTML(InputStream input, OutputStream output) { Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setDocType("strict"); tidy.setMakeClean(true); tidy.setQuiet(false); tidy.setIndentContent(true); tidy.setSmartIndent(true); tidy.setDropEmptyParas(false); tidy.setFixBackslash(true); tidy.setForceOutput(true); tidy.setTrimEmptyElements(false); tidy.setHideEndTags(true); tidy.setIndentAttributes(true); tidy.setBreakBeforeBR(true); tidy.setFixComments(true); tidy.setLogicalEmphasis(true); // b to strong etc tidy.setDropFontTags(false); tidy.setOutputEncoding("UTF-8"); tidy.parseDOM(input, output); } |
From: Sean V. B. <sv...@gm...> - 2009-09-15 06:52:22
|
Hi all, Firstly, as my first post, I'd like to say a big hello, and thank you to the developers for this fine product. Secondly, sorry if this is a duplicate. But I assumed my first post didn't work, as I didn't get the confirmation email I expected (according to configurations). In the case you haven't already heard from me, please read on! I am of course trying to clean up the dodgy html that i'm producing with a java html editor i'm using. My html is actually generated and inserted into the java editor. When in the java editor, at various points in time, it needs to be cleaned by JTidy so that it still is xhtml compliant (no missing end tags, etc). However, after going through JTidy (using the Fri Jul 31 2009 23:53 snapshot/release), with the following setings (see below), my head element gets stripped, and my style element goes missing. Given my settings below, and the reason I'm using JTidy (ensure there are always end tags) what am I doing wrong (or is it my assumptions that are wrong?) and how can I fix it? Thanks to all replies. p.s Here is my JTidy code: public void cleanHTML(InputStream input, OutputStream output) { Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setDocType("strict"); tidy.setMakeClean(true); tidy.setQuiet(false); tidy.setIndentContent(true); tidy.setSmartIndent(true); tidy.setDropEmptyParas(false); tidy.setFixBackslash(true); tidy.setForceOutput(true); tidy.setTrimEmptyElements(false); tidy.setHideEndTags(true); tidy.setIndentAttributes(true); tidy.setBreakBeforeBR(true); tidy.setFixComments(true); tidy.setLogicalEmphasis(true); // b to strong etc tidy.setDropFontTags(false); tidy.setOutputEncoding("UTF-8"); tidy.parseDOM(input, output); } |
From: Sean V. B. <sv...@gm...> - 2009-09-15 05:27:18
|
Hi all, Firstly, as my first post, I'd like to say a big hello, and thank you to the developers for this fine product. I am of course trying to clean up the dodgy html that i'm producing with a java html editor i'm using. My html is actually generated and inserted into the java editor. When in the java editor, at various points in time, it needs to be cleaned by JTidy so that it still is xhtml compliant (no missing end tags, etc). However, after going through JTidy (using the Fri Jul 31 2009 23:53 snapshot/release), with the following setings (see below), my head element gets stripped, and my style element goes missing. Given my settings below, and the reason I'm using JTidy (ensure there are always end tags) what am I doing wrong (or is it my assumptions that are wrong?) and how can I fix it? Thanks to all replies. p.s Here is my JTidy code: public void cleanHTML(InputStream input, OutputStream output) { Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setDocType("strict"); tidy.setMakeClean(true); tidy.setQuiet(false); tidy.setIndentContent(true); tidy.setSmartIndent(true); tidy.setDropEmptyParas(false); tidy.setFixBackslash(true); tidy.setForceOutput(true); tidy.setTrimEmptyElements(false); tidy.setHideEndTags(true); tidy.setIndentAttributes(true); tidy.setBreakBeforeBR(true); tidy.setFixComments(true); tidy.setLogicalEmphasis(true); // b to strong etc tidy.setDropFontTags(false); tidy.setOutputEncoding("UTF-8"); tidy.parseDOM(input, output); } |
From: Adrian S. <ad...@ya...> - 2009-09-14 02:19:19
|
Oh, apparently this is a direct solution: http://code.google.com/p/java-xhtml-cache-dtds-entityresolver/ ________________________________ From: Adrian Sandor <ad...@ya...> To: jti...@li... Sent: Monday, September 14, 2009 9:05:36 AM Subject: Re: [Jtidy-user] How to customize location of DTD? I don't think JTidy can do that, but it sounds like you're looking for the wrong solution for your problem. The right solution would be to configure your XML parser to use a local copy of the DTD automatically. For example, The Flying Saucer Project ( https://xhtmlrenderer.dev.java.net/ ) does that. Also see http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic Adrian ________________________________ From: Grant (Guan Quan) Liu <gfo...@gm...> To: jti...@li... Sent: Saturday, September 12, 2009 7:32:22 AM Subject: [Jtidy-user] How to customize location of DTD? After using JTidy to parse my HTML file, I got a header like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> However, I need to change "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" to "xhtml1-transitional.dtd" so that I don't get 503 error. Is there anywhere in the API that allow me to make this change automatically? Thanks, Grant |
From: Adrian S. <ad...@ya...> - 2009-09-14 01:05:46
|
I don't think JTidy can do that, but it sounds like you're looking for the wrong solution for your problem. The right solution would be to configure your XML parser to use a local copy of the DTD automatically. For example, The Flying Saucer Project ( https://xhtmlrenderer.dev.java.net/ ) does that. Also see http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic Adrian ________________________________ From: Grant (Guan Quan) Liu <gfo...@gm...> To: jti...@li... Sent: Saturday, September 12, 2009 7:32:22 AM Subject: [Jtidy-user] How to customize location of DTD? After using JTidy to parse my HTML file, I got a header like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> However, I need to change "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" to "xhtml1-transitional.dtd" so that I don't get 503 error. Is there anywhere in the API that allow me to make this change automatically? Thanks, Grant |
From: Grant (G. Q. L. <gfo...@gm...> - 2009-09-11 23:32:35
|
After using JTidy to parse my HTML file, I got a header like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> However, I need to change " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" to "xhtml1-transitional.dtd" so that I don't get 503 error. Is there anywhere in the API that allow me to make this change automatically? Thanks, Grant |
From: Adrian S. <ad...@ya...> - 2009-09-11 04:36:59
|
Hi, see tidy.setXmlPi(true) It will be renamed to setXmlDecl in a future version. Adrian ________________________________ From: Grant (Guan Quan) Liu <gfo...@gm...> To: jti...@li... Sent: Friday, September 11, 2009 4:59:42 AM Subject: [Jtidy-user] How to add XML header in Jtidy I've set setXMLout to be true. But the output file is still without an XML header tag. It still begins with <html>... Tidy tidy = new Tidy(); tidy.setXmlOut(true); what can i do to add and XMl header tag? Thanks, BH |
From: Grant (G. Q. L. <gfo...@gm...> - 2009-09-10 20:59:53
|
I've set setXMLout to be true. But the output file is still without an XML header tag. It still begins with <html>... Tidy tidy = new Tidy(); tidy.setXmlOut(true); what can i do to add and XMl header tag? Thanks, BH |
From: SourceForge.net <no...@so...> - 2009-09-01 18:30:38
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7602074 By: aditsu I don't know, try to search for an XML parser that accepts bad XML, or ask in a java forum/chat room/mailing list. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=41437 |
From: SourceForge.net <no...@so...> - 2009-08-26 20:30:24
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7587665 By: nobody owhh is there any library that can help solve my problem ? thanks a lot ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=41437 |
From: SourceForge.net <no...@so...> - 2009-08-26 16:05:11
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7586798 By: aditsu JTidy is an HTML parser, not a generic XML parser. It can read almost any file, but will try to make it valid HTML. <person>, <name> and <sex> are not HTML tags, therefore I don't think you can use JTidy in this case. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=41437 |
From: SourceForge.net <no...@so...> - 2009-08-26 10:53:12
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7585625 By: nobody i mean tags in XML, for example tag <sex> is unclosed : <person> <name>John doe</name> <sex>male </person> can jtidy close that tag ? if can, how ? become : <person> <name>John doe</name> <sex>male</sex> </person> ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=41437 |
From: SourceForge.net <no...@so...> - 2009-08-25 20:20:13
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7583805 By: aditsu It should; if it doesn't, please post an example. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=41437 |
From: SourceForge.net <no...@so...> - 2009-08-25 20:12:46
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7583786 By: nobody can jtidy fix unclosed tags ? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=41437 |
From: Adrian S. <ad...@ya...> - 2009-08-25 18:39:27
|
Hi, sorry for replying so late, I actually wasn't subscribed to this (or any other) jtidy mailing list. I generally don't like mailing lists very much, I prefer forums. > see this post: > http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/2008-May/016893.html > but i looked at the history of this file: > http://jtidy.svn.sourceforge.net/viewvc/jtidy/trunk/jtidy/pom.xml?view=log > and there it says that the main-class was added back to the jar file in > revision 812. why doesn't the newest jar file, revision 820, still not > contain a manifest.mf file with the main-class in it? Well, yes there is an explanation, and it goes like this: - the r820 jar file was released by me - I recently joined the jtidy project since it seemed to be abandoned - I didn't build the jar using maven because I don't use maven (it's a beast that I'd rather stay away from) so pom.xml didn't play any role - I didn't think about people running "java -jar", I was vaguely aware of it but didn't really consider it when building the jar, sorry - finally, I'd like to point out that r820 is not a stable release, it's basically something to start with for reviving jtidy Anyway, thank you for reporting the problem "upstream", I'll make sure the next release has a proper manifest. I wonder if anybody would object to adding an ant build script :) Adrian |