[<<][erlang][>>][..]
Mon Jul 17 13:27:12 EDT 2017

Erlang XML template transformation

Maybe use XSLT?


%% https://medium.com/erlang-battleground/the-hidden-xml-simplifier-a5f66e10c928
scan_templates(FileName) ->    
    {Element,_Misc} = xmerl_scan:file(FileName, [{space, normalize}]),
    [Clean] = xmerl_lib:remove_whitespace([Element]),
    xmerl_lib:simplify_element(Clean).




[Reply][About]
[<<][erlang][>>][..]