Notes | Bottom | Convert HTML to XHTML or XML
You can use this form to convert an HTML file to XHTML, or XML.

You should | enter the url to a file select desired options click Submit
The browser will retrieve the file and convert it. It will then open up a popup window and save the converted content to this popup window. You can then save the content of the popup to a file on your hard disk.

| URL of HTML file to convert (end with / to display a directory)
XML | XHTML | Add the XML and/or XHTML (transtitional) doctype to top of the output file
| Use this as the name of the base element (only used if `<body>` checkbox is checked)
| Convert `<div class="MODULECLASS" id="SEC1" >` to `<module id="SEC1" >`

Results shown here.
Depending on the options you chose, and how you want to use the resulting output ...you might have to edit this file a bit (typically, make sure their isn't extra stuff at the very top and very bottom).

## Notes

#### What are the doctypes:

- XML : `<?xml version="1.0" encoding="UTF-8" ?>`
- XHTML (transitional) : `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">`

#### What's the difference between XHTML and XML

- In XHMTL (transitional), and in XML, all tags must:
  1. have matching completion tags> For example: `<em> .... </em>`
  2. if they are standalone tags, they must end with a />. For example: `<br />`
- Case matters! Your start and end tags must be the same case.
  1. Correct. `<li> This is a list item </li>`
  2. InCorrect. `<LI> This is a list item </li>`
- Attributes (within tags) must be quoted.
  1. Correct. `<table> border="1" </table>`
  2. InCorrect. `<table> border=1 </table>`
- A proper doctype is needed for XML, and for XHTML.

#### What's with the &

When you specify &, as in `&gt;` , the trickery used by this conversion program is challenged. A hack is used to solve this challenge, but it might not work on all browsers. If & are found (as noted in the brown status box), you might want to check the document for problems.

#### SPAN etc with no gap

Elements that do not have any spaces between their start and end tag are interesting.

- For SPAN, DIV, P, LI, and BLOCKQUOTE : a begin and end element are created (with no intervening spaces).
  For example: `<span anattribute="avalue" ></span>`
- For all other elements, a single / terminated node is created.
  For example: `<b />`

workspace...