if (dbmode && key.charAt(0) == '_') { continue; }
    private void writeProperties(INode node, int level)                          throws IOException {        Enumeration e = null;        if ((dbmode == true) && node instanceof helma.objectmodel.db.Node) {            // a newly constructed db.Node doesn't have a propMap,            // but returns an enumeration of all it's db-mapped properties            Hashtable props = ((Node) node).getPropMap();            if (props == null) {                return;            }            e = props.keys();        } else {            e = node.properties();        }        while (e.hasMoreElements()) {            String key = (String) e.nextElement();            IProperty prop = node.get(key);            if (prop != null) {                boolean validName = isValidElementName(key);                String elementName;                String propName;                if (validName) {                    elementName = key;                    propName = null;                } else {                    elementName = "property";                    propName = key;                }                int type = prop.getType();                if (type == IProperty.NODE) {                    write(prop.getNodeValue(), elementName, propName, level);                } else {                    writeProperty(prop, elementName, propName);                }            }        }    }