W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2001

Re: Problems with entities HTML -> XML! (new to list)

From: Dave Raggett <dsr@w3.org>
Date: Fri, 26 Jan 2001 15:23:30 +0000 (GMT Standard Time)
To: Niels Peter Strandberg <nielspeter@npstrandberg.com>
cc: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.10101261519490.-998649@hazel.phone.com>
On Fri, 26 Jan 2001, Niels Peter Strandberg wrote:

> Hi!
> 
> (Using jTidy)
> 
> I'm converting a html file to xml.  I have 2 problems that I
> need to know how to solve.

I recommend you either set "output-xhtml: yes" as the XHTML
DTD's will pull in the entity declaration used in XHTML.

You could specify your own doctype or just strip the existing doctype.
e.g. "doctype: omit". The HTML 3.2 DTD is not an XML DTD, and hence
not a good idea.


Regards,

-- Dave Raggett <dsr@w3.org> or <dave.raggett@openwave.com>
W3C Visiting Fellow, see http://www.w3.org/People/Raggett 
tel/fax: +44 122 578 3011 (or 2521) +44 771 213 7629 (mobile)
Received on Friday, 26 January 2001 10:23:35 GMT

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