[erlang-questions] Pretty print an XML?

Willem de Jong w.a.de.jong@REDACTED
Tue Sep 25 15:06:49 CEST 2018


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 (
https://github.com/willemdj/erlsom).

regards,
Willem

Op di 25 sep. 2018 om 14:48 schreef Brujo Benavides <elbrujohalcon@REDACTED
>:

> Or you can use the xml simplifier
> <https://medium.com/erlang-battleground/the-hidden-xml-simplifier-a5f66e10c928>
>  ;)
>
> ------------------------------
> *Brujo Benavides <http://about.me/elbrujohalcon>*
>
>
>
> On 25 Sep 2018, at 09:46, Vance Shipley <vances@REDACTED> wrote:
>
> On Tue, Sep 25, 2018 at 5:39 PM Frank Muller <frank.muller.erl@REDACTED>
> wrote:
>
> Is there a way to pretty print a valid XML string loaded from file?
>
>
> Unfortunately with xmerl you have to sprinkle stuff like this in
> yourself:  #xmlText{value="\n "}
>
>
> --
>     -Vance
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180925/3d4e14aa/attachment.htm>


More information about the erlang-questions mailing list