DTD

The Document Type Definition for Thinlet XML documents is available at: http://thinlet.dev.java.net/thinlet.dtd.

XML parser

Thinlet's simple and extremely compact parser is designed to parse XML sources written for its GUI description. It is appropriate for this task, although it is not a full featured complete parser.

It includes a simple XML parser, you can use the following methods for a SAX-like parsing:

protected void parseXML(InputStream inputstream) throws IOException
protected void startElement(String name, Hashtable attributelist)
protected void characters(String text)
protected void endElement()

or the following methods for DOM-like parsing:

protected Object parseDOM(InputStream inputstream) throws IOException
protected static String getDOMAttribute(Object node, String key)
protected static String getDOMText(Object node)
protected static int getDOMCount(Object node, String key)
protected static Object getDOMNode(Object node, String key, int index)