java.lang.Object | +----typechk
An element that has an attribute called "xml-sqltype" is a strongly typed element. It must match these rules:
It can have no child elements other than comments and data.
The value of xml-sqltype is one of: char, varchar, integer, decimal, float, date, time, timestamp (all of them case-insensitive).
The element may have attributes xml-sqlsize, xml-sqlmin and xml-sqlmax.
The concatenation of the element's data conforms to the rules for the particular xml-sqltype, possibly modified by the xml-sqlsize, xml-sqlmin and xml-sqlmax attributes (see the code below and the proposal mentioned above).
[Note: implementing all checks is rather boring; I haven't implemented the checks for TIME and TIMESTAMP, but they are not hard and will come later.]
public static void main(String argv) throws IOException, UnknownEncoding