RE: Converting HTM to XML

To be as specific as possible, see:

Output XHTML 
http://tidy.sourceforge.net/quickref.html#output-xhtml

DOCTYPE handling
http://tidy.sourceforge.net/quickref.html#doctype

HTML Scraping (extract <body> contents)
http://tidy.sourceforge.net/quickref.html#show-body-only

How To Set Config/Options Generally
http://tidy.sourceforge.net/docs/Overview.html#help

One thing to be aware of when converting to XHTML is that your in-line
Javascript (or VBScript or what have you) may conflict with reserved XML
characters.  Browser script functions within <script></script> tags are
CDATA escaped so that ampersands(&) and less than/greater than signs (<,>)
are passed to the scripting language unaltered.  But it is not possible to
do this for in-line event handlers (e.g. onclick="if ( a > b && c < d) { a =
d; }; return false;").  You will have to modify these handlers to make a
simple function call and move the actual code to a <script> tag.

take it easy,
Charlie

-----Original Message-----
From: Mervyn & Marica Jones [mailto:jones@netdial.co.za]
Sent: Saturday, January 26, 2002 2:54 PM
To: html-tidy@w3.org
Subject: Converting HTM to XML



Hi
I visited your website and found a similar topic bu I was unable to access
the answer.  Is there an example anywhere of the original HTML file and the
new XML file??  I have a project to complete.  Please help

Thank you
Marica Jones (jones@netdial.co.za)

Received on Monday, 28 January 2002 13:16:10 UTC