HtmlToXml Tutorial 2: > Starting HtmlToXml
Previous Page Contents Next Page
OOP-Reserch home page

Contact Us

Starting HtmlToXml

Starting HtmlToXml...

You can start HtmlToXml by:

In case of Windows OS, please double-click html2xml.jar file. Then, you will see the main window of HtmlToXml:

image of HtmlToXml converter

[Figure 1]


To start the conversion, all the items must be specified in this window.
As shown above, please select the same HTML both for the valid case and the invalid case.
For your convenience, the table below list the items in this main window:

ItemWhat does it mean?
Input for valid case: HTML for valid case.
Input for invalid case: HTML for invalid case. It will include the messages (and the additional HTML tags) as if all the inputs are invalid.
Output XML: XML to be generated. It should be placed under:
  • (docBase)/WEB-INF/classes
directory (or its sub-directory), because the generated XML will be loaded by our Java API.
Character Encoding for input: Charset in which the specified pair of HTML is written.
Character Encoding for output: Charset in which the output XML will be written.
Content-Type: The content-type of the response from your Servlet, followed by charset extension. For example, it will be:
  • text/html; charset=ISO-8859-1
Validation resource: The property file which lists the classes. These classes are used to validate the request parameter from the CGI FORM. This property file is shipped with the distribution of our Java API. It should be placed under:
  • (docBase)/WEB-INF/classes
directory, because it is required also for our Java API. In case of FormGenerator API, it will be:
  • (docBase)/WEB-INF/classes/FormValueVerifierFactory.properties
Escape resource: The property file which lists the classes. These classes are used to escape the String to be inserted. This property file is shipped with the distribution of our Java API. It should be placed under:
  • (docBase)/WEB-INF/classes
directory, because it is required also for our Java API. In case of FormGenerator API, it will be:
  • (docBase)/WEB-INF/classes/FormValueEscaperFactory.properties
Break resource: The property file which lists the classes. These classes are used to insert the tags for the line break. This property file is shipped with the distribution of our Java API. It should be placed under:
  • (docBase)/WEB-INF/classes
directory, because it is required also for our Java API. In case of FormGenerator API, it will be:
  • (docBase)/WEB-INF/classes/FormValueBreakerFactory.properties


Java and all Java-based trademarks and logos are trademarks or registered of Sun Microsystems, Inc. in the United States and other countries.


Previous Page Contents Next Page
OOP-Reserch home page

Contact Us


ALL CONTENTS COPYRIGHT 2002, Jun Inamori. All rights reserved.
Any questions and comments are welcome to Jun Inamori .