- From: Niels Peter Strandberg <nielspeter@npstrandberg.com>
- Date: Fri, 26 Jan 2001 15:46:19 +0100
- To: html-tidy@w3c.org
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 Friday, 26 January 2001 09:45:51 UTC