getDiff(sb, renderer.getRenderingContext().getRootBox(), "");
getDiff(sb, renderer.getPanel().getRootBox(), "");
    public static String xhtmlToDiff(String xhtml, int width, int height)            throws Exception {        Document doc = Xx.loadDocument(xhtml);        Graphics2DRenderer renderer = new Graphics2DRenderer();        renderer.setDocument(doc, new File(xhtml).toURL().toString());        BufferedImage buff = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR);        Graphics2D g = (Graphics2D) buff.getGraphics();        Dimension dim = new Dimension(width, height);        renderer.layout(g, dim);        renderer.render(g);        StringBuffer sb = new StringBuffer();        getDiff(sb, renderer.getRenderingContext().getRootBox(), "");        return sb.toString();    }