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

Hi!

(Using jTidy)

Im converting a html file to xml.  I have 2 problems that I need to know how to solve.

Code:

        tidy.setXmlOut(true);
        tidy.setFixBackslash(true); // URL FixBackslash
        tidy.setRawOut(true); // RawOut - avoid mapping values > 127 to entities
        tidy.setXmlPi(true); // XmlPi - add <?xml?> for XML docs
        tidy.setQuoteAmpersand(true); // QuoteAmpersand - output naked ampersand as &
        tidy.setTidyMark(false); // TidyMark - add meta element indicating tidied doc
        tidy.setWraplen(99999); // Wraplen - default wrap margin



The result file output:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<link rel="made" href="wsanchez@apple.com" />
<title>Welcome to Mac OS X!</title>
...........

Received on Monday, 29 January 2001 16:19:24 UTC