diff servlet/src/digilib/io/XMLListLoader.java @ 176:67ff8c7fecb9

Servlet version 1.17b2 - new mapping file for "virtual directories" - direct file URLs now work without extension (even with wrong ones)
author robcast
date Mon, 10 Nov 2003 20:59:00 +0100
parents c878ea574c29
children afe7ff98bb71
line wrap: on
line diff
--- a/servlet/src/digilib/io/XMLListLoader.java	Mon Nov 10 20:50:32 2003 +0100
+++ b/servlet/src/digilib/io/XMLListLoader.java	Mon Nov 10 20:59:00 2003 +0100
@@ -34,6 +34,17 @@
 import org.xml.sax.SAXParseException;
 import org.xml.sax.helpers.DefaultHandler;
 
+/** Loads a simple XML list into a HashMap.
+ * 
+ * The XML file has an outer <code>list_tag</code>. Every entry is an 
+ * <code>entry_tag</code> with two attributes: the <code>key_att</code>
+ * key and the <code>value_att</code> value.
+ * 
+ * The file is read by the <code>loadURL</code> method, that returns a
+ * HashMap with the key-value pairs.
+ * 
+ * @author casties
+ */
 public class XMLListLoader {
 
 	private String listTag = "list";