[Previous] [Contents] [Next]

XMLizing HTML Code

To "XMLize" your HTML code, that is to convert HTML to XML, you will begin by creating a Web document using XML elements that will default to standard HTML tags. To do this, you will have to close all HTML tags. For example, if you use the tag <br> that does not have an end tag in the document, you will have to add one, as shown here:


  <br></br>

Because the Web browser does not know what the </br> tag is, it will ignore it. You could not use the following empty element XML notation, however, because non-XML browsers would not be able to identify the tag:


  <br/>

Adding end tags is one of several tasks that will need to be performed to create a well-formed document-in other words, the first step in XMLizing your HTML is to make the document well formed.

[Previous] [Contents] [Next]