[erlang-questions] ErlTl question

Joseph Wecker <>
Sun Feb 8 21:17:38 CET 2009


Salonee Sinha Roy wrote:
>
>
> which returns
> [<<"\n<test_xml>\n">>,<<"Test">>,<<"\n</test_xml>\n">>]
>
> How do I use this to generate the xml string 
> "<test_xml>Test</text_xml>". I dont really care about the white space. 
> It can remain in the final xml string.
If you're writing to a file or screen you're already done- just feed 
that straight in.  For example, try file:write_file/2 your result there 
and then opening it in an editor.

-Joseph



More information about the erlang-questions mailing list