<div dir="ltr"><div><div>I want to create Following xml .</div><div><br></div><div><div><?xml version="1.0"?></div><div><configuration></div><div><uid>1</uid></div><div>dif>1</dif></div><div></configuration></div></div><div><br></div><div>I am trying it with following code, but getting error.</div><div><br></div><div>serialize(Data) -></div><div>    Xml = lists:flatten(xmerl:export_simple(Data, xmerl_xml)),</div><div>    io:format("~s~n", [Xml]).</div></div><div><br></div><div>test7(UId,DId) -><span class="" style="white-space:pre"> </span></div><div><span class="" style="white-space:pre">   </span></div><div>   RootElem = {configuration,</div><div>                    [{uid, [UId]},{dif, [DId]}]},</div><div><span class="" style="white-space:pre">   </span></div><div><span style="white-space:pre">   </span>serialize([RootElem]).<span class="" style="white-space:pre">      </span></div><div><span class="" style="white-space:pre"><br></span></div><div><span class="" style="white-space:pre">by calling test7(1,1)       </span></div><div><span class="" style="white-space:pre"><br></span></div><div><span style="white-space:pre">Please help.</span></div><div><br></div>-- <br><div class="gmail_signature"><div>Regards,</div>
<div>Lamchith</div></div>
</div>