Hi all, I have attached a patch that allows to indent the XML output by a DomRepresentation. This feature can be toggled on or off and is disabled by default. I believe it comes in handy when developing an application that writes XML as it makes the output a lot more readable and thus easier to debug.
I have added the following methods to org.restlet.resource.DomRepresentation : + public getIndent() + public void setIndent(boolean) + protected Transformer getTransformer() : exposes the Transformer used to write the XML and allows subclasses to override it and return a custom Transformer or specify additional properties. For the same reason, I have made getDocumentBuilder() protected instead of private. The patch is based off Restlet 1.0.6, you can get it here: http://www.mucommander.com/scratch/DomRepresentation-1.0.6.java.diff I hope this will be useful to some of you and possibly be integrated. Thanks for Restlet and the work you put into it! My best, Maxence Bernard --- http://www.mucommander.com

