@Override
    public String toString() {
        String s = ""; 
        String nodeName = domNode.getNodeName();

        if ( nodeName.equals("mets:div") ) {
            Element div = (Element) domNode;
            s = div.getAttribute("TYPE") + ": " + div.getAttribute("LABEL");
        }
        else if ( nodeName.equals("mets:file")) 
        {
            s = "file";
        }
        else if ( nodeName.equals("mets:fptr"))
        {
            s = "fptr";
        }
        else if ( nodeName.equals("mets:fileSec"))
        {
            s = "fileSec";
        }
        else if ( nodeName.equals("mets:fileGrp"))
        {
            s = "fileGrp";
        }
        else if ( nodeName.equals("mets:FLocat"))
        {
            s = "FLocat";
        }
        else if ( nodeName.equals("mets:structMap"))
        {
            s = "structMap";
        }
        else if ( nodeName.equals("mets"))
        {
            s = "mets";
        }

//        String t = content();
//        int x = t.indexOf("\n");
//
//        if (x >= 0) 
//        {
//            t = t.substring(0, x);
//        }
//
//        s += (" " + t);

        return s;

    }