[erlang-questions] xml creation
Eric Pailleau
eric.pailleau@REDACTED
Tue Feb 10 12:33:06 CET 2015
missing opening < in dif tag.
« Envoyé depuis mon mobile » Eric
Lamchith M C <lamchith@REDACTED> a écrit :
>I want to create Following xml .
>
><?xml version="1.0"?>
><configuration>
><uid>1</uid>
>dif>1</dif>
></configuration>
>
>I am trying it with following code, but getting error.
>
>serialize(Data) ->
> Xml = lists:flatten(xmerl:export_simple(Data, xmerl_xml)),
> io:format("~s~n", [Xml]).
>
>test7(UId,DId) ->
> RootElem = {configuration,
> [{uid, [UId]},{dif, [DId]}]},
> serialize([RootElem]).
>
>by calling test7(1,1)
>
>Please help.
>
>--
>Regards,
>Lamchith
>
>_______________________________________________
>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/20150210/367e84aa/attachment.htm>
More information about the erlang-questions
mailing list