public static Vector<String> attributes(DefaultMutableTreeNode node){
        
        Vector <String> v = new Vector<String>();
        String name=getName(node.getUserObject());
        
        if(name.equals("composedblock")){
           v.add("type");
           ImposedType tip=((ComposedBlockType) node.getUserObject()).getType();
           if (tip==ImposedType.ARTICLE) v.add("article");
           if (tip==ImposedType.BODY) v.add("body");
           if (tip==ImposedType.PAGE_NUMBER) v.add("page_number");
           if (tip==ImposedType.PARAGRAPH) v.add("paragraph");
           if (tip==ImposedType.TITLE) v.add("title");
           if (tip==ImposedType.SUBTITLE) v.add("subtitle");
        }
        if(name.equals("textblock")){
           TextBlockType textbloc = (TextBlockType)node.getUserObject();
           v.add("refid");
           v.add(textbloc.getRefid());
           v.add("left");
           v.add((textbloc.getLeft().toString()));
           v.add("right");
           v.add(textbloc.getRight().toString());
           v.add("top");
           v.add(textbloc.getTop().toString());
           v.add("bottom");
           v.add(textbloc.getBottom().toString());
        }
        if(name.equals("imageblock")){
           ImageBlockType textbloc = (ImageBlockType)node.getUserObject();
           v.add("refid");
           v.add(textbloc.getRefid());
           v.add("left");
           v.add((textbloc.getLeft().toString()));
           v.add("right");
           v.add(textbloc.getRight().toString());
           v.add("top");
           v.add(textbloc.getTop().toString());
           v.add("bottom");
           v.add(textbloc.getBottom().toString());
        }
        if(name.equals("point")){
           PointType point = (PointType)node.getUserObject();
           v.add("x");
           v.add(point.getX().toString());
           v.add("y");
           v.add(point.getY().toString());
        }
        if(name.equals("document")){
           
           DocumentType doc = (DocumentType)node.getUserObject();
           v.add("image");
           v.add(doc.getImage());
           v.add("direction");
           if (doc.getDirection()==DirType.ASCENDING) v.add("ascending");
           if (doc.getDirection()==DirType.DESCENDING) v.add("descending");
           v.add("id");
           v.add(doc.getId());
        }
           if(name.equals("textline")){
           
           TextBlockType.TextLine doc = (TextBlockType.TextLine)node.getUserObject();
           v.add("left");
           v.add((doc.getLeft().toString()));
           v.add("right");
           v.add(doc.getRight().toString());
           v.add("top");
           v.add(doc.getTop().toString());
           v.add("bottom");
           v.add(doc.getBottom().toString());
           v.add("text");
           v.add(getString(node));
        }
        
        
        return v;
    }