# Web application extension service reference

XmlMime

The `XmlMime` class is a generic xml mime document class. The class is used to construct a mime version of a xml document which can be obtained from a file name, or an input stream. By default, the mime type 'application/xml'.

xml-mime-p
XmlDocument
Mime
XmlMime
none

The `XmlMime` constructor creates a default xml mime document.

XmlMime
String

The `XmlMime` constructor creates a xml mime document by parsing a file. The file name is the string argument.

XmlMime
String Input

The `XmlMime` constructor creates a xml mime document by name and by parsing the input stream. The first argument is the xml document name. The second argument is the input stream to parse.

XhtmlMime

The `XhtmlMime` class is a generic xhtml mime document class. The class is used to construct a mime version of a xhtml document which can be obtained from a file name, or an input stream. By default, the mime type 'application/xhtml+xml'.

xhtml-mime-p
XmlMime
XhtmlMime
none

The `XhtmlMime` constructor creates a default xhtml mime document.

XhtmlMime
String

The `XhtmlMime` constructor creates a xhtml mime document by parsing a file. The file name is the string argument.

XhtmlMime
String Input

The `XhtmlMime` constructor creates a xhtml mime document by name and by parsing the input stream. The first argument is the xhtml document name. The second argument is the input stream to parse.