public static void changeAtrribute(DefaultMutableTreeNode node, String old, String nou){
        
        String name=getName(node.getUserObject());
        if(name.equals("composedblock")){
        ComposedBlockType bloc= (ComposedBlockType) node.getUserObject();
        if (nou.equals("title")) bloc.setType(ImposedType.TITLE);
        if (nou.equals("page_number")) bloc.setType(ImposedType.PAGE_NUMBER);
        if (nou.equals("article")) bloc.setType(ImposedType.ARTICLE);
        if (nou.equals("paragraph")) bloc.setType(ImposedType.PARAGRAPH);
        if (nou.equals("subtitle")) bloc.setType(ImposedType.SUBTITLE);
        if (nou.equals("body")) bloc.setType(ImposedType.BODY);
        }
        if(name.equals("textblock")){
            TextBlockType text= (TextBlockType) node.getUserObject();
             if (old.equals("left")) text.setLeft(new BigInteger(nou));
             if (old.equals("right")) text.setRight(new BigInteger(nou));
             if (old.equals("top")) text.setTop(new BigInteger(nou));
             if (old.equals("bottom")) text.setBottom(new BigInteger(nou));
              if (old.equals("refid")) text.setRefid(nou);
        }
        if(name.equals("textline")){
            TextBlockType.TextLine text= (TextBlockType.TextLine) node.getUserObject();
             if (old.equals("left")) text.setLeft(new BigInteger(nou));
             if (old.equals("right")) text.setRight(new BigInteger(nou));
             if (old.equals("top")) text.setTop(new BigInteger(nou));
             if (old.equals("bottom")) text.setBottom(new BigInteger(nou));
             if (old.equals("text")) setString(node, nou);
        }
        if(name.equals("imageblock")){
            ImageBlockType text= (ImageBlockType) node.getUserObject();
             if (old.equals("left")) text.setLeft(new BigInteger(nou));
             if (old.equals("right")) text.setRight(new BigInteger(nou));
             if (old.equals("top")) text.setTop(new BigInteger(nou));
             if (old.equals("bottom")) text.setBottom(new BigInteger(nou));
              if (old.equals("refid")) text.setRefid(nou);
        }
        
        if(name.equals("point")){
            PointType text= (PointType) node.getUserObject();
             if (old.equals("x")) text.setX(new BigInteger(nou));
             if (old.equals("y")) text.setY(new BigInteger(nou));

        }
        
        if(name.equals("document")){
            DocumentType text= (DocumentType) node.getUserObject();
             if (old.equals("image")) text.setImage(nou);
             if (old.equals("direction")) 
             {
                 if (nou.equals("ascending")) text.setDirection(DirType.ASCENDING);
                 if (nou.equals("descending")) text.setDirection(DirType.DESCENDING);
             }
             if (old.equals("id")) text.setId(nou);
             
        }
    }