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

JTidy: XML Output

From: Nayan Hajratwala <nhajratw@yahoo.com>
Date: Mon, 14 Aug 2000 14:38:29 -0700 (PDT)
Message-ID: <20000814213829.515.rocketmail@web221.mail.yahoo.com>
To: html-tidy@w3.org
Hi all...

I am using JTidy to take an HTML file and output it as XML.

It seems to work fine until I try to run the resulting file through
Sun's JAXP parser.  In HTML documents that contain '&copy' for the
copyright symbol, JAXP says: 'Reference to undefined entity "&copy;'.

Is '&copy' not a valid XML entry?  If so, is there a way to ensure that
JTidy does not output this?

I also initially had the same problem with '&nbsp;', but calling
Tidy.setQuoteNbsp(false) fixed that.

Thanks for any advice!

.oO Nayan Hajratwala - moc.tenalaw@nayan http://www.walanet.com Oo.
.oO       "Everything's gonna be alright" - Bob Marley          Oo.

Do You Yahoo!?
Yahoo! Mail  Free email you can access from anywhere!
Received on Monday, 14 August 2000 17:38:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:48 UTC