java - How to indent XML with XStream? -


I've seen I would be able to set Indentent many places while storage with Aksstrym and I'm afraid that it Clearly not to set the number of spaces. I do not find anything, can anyone please explain it and explain it with examples?

are connected by following the example of post you've left and I came up with this code was:

  char [] indent = new char [] { '', '', '', ''}; BufferedOutputStream stdout = new BufferedOutputStream (System.out); Xstreamkmarshal (Object, New Preetiprint Waitr (new Autputstrym water (Stdaut), indent));  

Comments