Core/src/main/java/org/openestate/io/core/XmlDocument.java
public final String toXmlString(boolean prettyPrint) throws TransformerException, IOException {
        try (StringWriter w = new StringWriter()) {
            this.toXml(w, prettyPrint);
            return w.toString();
        }
    }
public final String toXmlString(boolean prettyPrint) throws TransformerException, IOException {
        try (StringWriter w = new StringWriter()) {
            this.toXml(w, prettyPrint);
            return w.toString();
        }
    }
Returns XML for the contained {@link Document}.

@param prettyPrint if pretty printing is enabled for the generated XML code
@return the generated XML code
@throws TransformerException if XML transformation failed
@throws IOException          if writing failed