<div dir="ltr"><div dir="ltr">It may not work for all XML documents (it was not really intended as a general XML pretty printer), but you can try erlsom_lib:prettyPrint(String). It is part of erlsom (<a href="https://github.com/willemdj/erlsom">https://github.com/willemdj/erlsom</a>).</div><div dir="ltr"><br></div><div>regards,</div><div>Willem</div></div><br><div class="gmail_quote"><div dir="ltr">Op di 25 sep. 2018 om 14:48 schreef Brujo Benavides <<a href="mailto:elbrujohalcon@gmail.com">elbrujohalcon@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Or you can use the <a href="https://medium.com/erlang-battleground/the-hidden-xml-simplifier-a5f66e10c928" target="_blank">xml simplifier</a> ;)<br><div>
<div style="color:rgb(0,0,0);font-family:'Trebuchet MS';font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><span id="m_-7570254344396142058docs-internal-guid-e691a4cc-056a-0210-b8b7-ea8d87d888ad"><span style="font-size:11pt;font-family:Arial;font-weight:700;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"><br class="m_-7570254344396142058Apple-interchange-newline"><hr></span></span><div><b><i><a href="http://about.me/elbrujohalcon" target="_blank">Brujo Benavides</a></i></b></div></div></div><div style="color:rgb(0,0,0);font-family:'Trebuchet MS';font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><b><br></b></div><br class="m_-7570254344396142058Apple-interchange-newline">
</div>
<div><br><blockquote type="cite"><div>On 25 Sep 2018, at 09:46, Vance Shipley <<a href="mailto:vances@motivity.ca" target="_blank">vances@motivity.ca</a>> wrote:</div><br class="m_-7570254344396142058Apple-interchange-newline"><div><div>On Tue, Sep 25, 2018 at 5:39 PM Frank Muller <<a href="mailto:frank.muller.erl@gmail.com" target="_blank">frank.muller.erl@gmail.com</a>> wrote:<br><blockquote type="cite">Is there a way to pretty print a valid XML string loaded from file?<br></blockquote><br>Unfortunately with xmerl you have to sprinkle stuff like this in<br>yourself:  #xmlText{value="\n "}<br><br><br>--<br>     -Vance<br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br></div></div></blockquote></div><br></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>