[erlang-questions] how: xmerl export without "
Christoffer Vikström
cvi@REDACTED
Thu Sep 19 09:34:19 CEST 2013
As far as i know the xml standard doesn't allow for unquoted attribute
values, which is probably why xmerl outputs it that way. No idea if you can
game xmerl to output non-standard xml though.
/Christoffer
On Thu, Sep 19, 2013 at 8:32 AM, Bengt Kleberg
<bengt.kleberg@REDACTED>wrote:
> Greetings,
>
> I would like to get rid of " when xmerl export a structure.
>
> I have the following structure:
> [{bike, [{year, 2000}], [{name, ["Suzuki"]}]}]
>
> When I do
> lists:flatten( xmerl:export_simple_content(Bike, xmerl_xml) ).
>
> the result is
> "<bike year=\"2000\"><name>Suzuki</name></bike>"
>
> How should I do to get
> "<bike year=2000><name>Suzuki</name></bike>"
>
>
> bengt
>
> _______________________________________________
> 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/20130919/7ae1cc83/attachment.htm>
More information about the erlang-questions
mailing list