Hi All <br>I have the following erlang code from the xmerl sample in the documentation.<br><br>Data =<br>  {bike,<br>     [{year,"2003"},{color,"black"},{condition,"new"}],<br>     [{name,<br>
         [{manufacturer,["Harley Davidsson"]},<br>          {brandName,["XL1200C"]},<br>          {additionalName,["Sportster"]}]},<br>      {engine,<br>         ["V-engine, 2-cylinders, 1200 cc"]},<br>
      {kind,["custom"]},<br>      {drive,["belt"]}]}   , <br><br>    NewContent = lists:flatten([Data]),<br>    RootEl = #xmlElement{content=NewContent},<br>    Export=xmerl:export_simple([RootEl],xmerl_xml),<br>
    io:format("~p",[lists:flatten(Export)]).<br><br>Running this method generates the following xml string<br><br>"<?xml version=\"1.0\"?><undefined><bike year=\"2003\" color=\"black\" condition=\"new\"><name><manufacturer>Harley Davidsson</manufacturer><brandName>XL1200C</brandName><additionalName>Sportster</additionalName></name><engine>V-engine, 2-cylinders, 1200 cc</engine><kind>custom</kind><drive>belt</drive></bike></undefined>"<br>
<br>The root tag is <undefined>. How do I change this so that the root tag is "<myxml>"<br><br>Thanks<br>Salonee<br>