org.assertj.core.util.xml
Class XmlStringPrettyFormatter

java.lang.Object
  extended by org.assertj.core.util.xml.XmlStringPrettyFormatter

public class XmlStringPrettyFormatter
extends Object

Format an XML String with indent = 2 space.

Very much inspired by http://stackoverflow.com/questions/139076/how-to-pretty-print-xml-from-java and http://pastebin.com/XL7932aC


Method Summary
static String xmlPrettyFormat(String xmlStringToFormat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

xmlPrettyFormat

public static String xmlPrettyFormat(String xmlStringToFormat)


Copyright © 2013–2015 AssertJ. All rights reserved.