Hi there,<br><br>I'm having some difficulty exporting a full format XML structure using xmerl:export/2.<br><br>...<br>XmlSimple = {text, ["Hello World!"]},<br>xmerl:export_simple([XmlSimple], xmerl_xml), % Works OK
<br><br>XmlFull = xmerl_scan:string("<text>Hello World!</text>"), <br>xmerl:export([XmlFull], xmerl_xml). % Doesn't work!<br>...<br><br>The error is:<br><br>** exited: {function_clause,[{xmerl,export_element,
<br> [{{xmlElement,<br> text,<br> text,<br> [],<br> {xmlNamespace,[],[]},
<br> [],<br> 1,<br> [],<br> [{xmlText,<br> [{text,1}],
<br> 1,<br> [],<br> "Hello World!",<br> text}],
<br> [],<br> "C:/Apps/eclipse",<br> undeclared},<br> []},
<br> [xmerl_xml]]},<br> {xmerl,export_content,2},<br> {xmerl,export1,3},<br> {erl_eval,do_apply,5},<br>
{shell,exprs,6},<br> {shell,eval_loop,3}]} **<br><br>The simple format works fine but that doesn't help since I need to modify existing documents<br>and I can't import to this format...
<br><br>What am I doing wrong?<br><br>- Mikkel<br>