return createCodeFromNode(node, document, new DefaultFormatHelper());
}
public static String createCodeFromNode(Node node, String document, FormatHelper helper){
StringWriter writer = new StringWriter();
ReWriterContext ctx = new ReWriterContext(writer, document, helper);
ReWriteVisitor rewriter = new ReWriteVisitor(ctx);
rewriter.visitNode(node);
return writer.toString();
}