[erlang-questions] Xmerl full format export
Mikkel Jensen
mj@REDACTED
Wed Jan 10 20:12:53 CET 2007
Hi there,
I'm having some difficulty exporting a full format XML structure using
xmerl:export/2.
...
XmlSimple = {text, ["Hello World!"]},
xmerl:export_simple([XmlSimple], xmerl_xml), % Works OK
XmlFull = xmerl_scan:string("<text>Hello World!</text>"),
xmerl:export([XmlFull], xmerl_xml). % Doesn't work!
...
The error is:
** exited: {function_clause,[{xmerl,export_element,
[{{xmlElement,
text,
text,
[],
{xmlNamespace,[],[]},
[],
1,
[],
[{xmlText,
[{text,1}],
1,
[],
"Hello World!",
text}],
[],
"C:/Apps/eclipse",
undeclared},
[]},
[xmerl_xml]]},
{xmerl,export_content,2},
{xmerl,export1,3},
{erl_eval,do_apply,5},
{shell,exprs,6},
{shell,eval_loop,3}]} **
The simple format works fine but that doesn't help since I need to modify
existing documents
and I can't import to this format...
What am I doing wrong?
- Mikkel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070110/040a2bd8/attachment.htm>
More information about the erlang-questions
mailing list