public void printAllFields(Document doc)
{
Enumeration fieldEnum = doc.fields();
while(fieldEnum.hasMoreElements())
{
Field field = (Field)fieldEnum.nextElement();
String value = doc.get(field.name());
Log.log(field.name() + ":" + value);
}
}