XHashtable

This is a special application for java.util.Hashtable. A hashtable is also a map so it has the same features as XMap but more. For hashtables you have the possibility to use other hashtables as value types. This gives you the possibility to build a hierarchy of nested hashtables in your XML. Let's give an example:

<item type="java.util.Hashtable" key-type="java.lang.String">
  <item name="Test1" type="java.util.Hashtable" key-type="java.lang.String" value-type="java.lang.String">
    <item name="k1">value1</item>
    <item name="k2">value2</item>
    <item name="k3">value3</item>
  </item>
  <item name="k1" type="java.lang.String">value1</item>
  <item name="k2" type="java.lang.Integer">42</item>
</item>
      

It ist also possible to use java.util.Date as data type:

<item name="k1" type="java.util.Date">2004/05/24</item>
</item>
      

The format of the date in the XML has to be consistent with the Locale on your computer. In later versions it might be possible to configure this.