[erlang-questions] xmerl still slow?
Ulf Wiger (TN/EAB)
ulf.wiger@REDACTED
Wed Jan 31 14:29:00 CET 2007
I think that the thing that is slow in xmerl
is the actual parsing.
xmerl:export_simple/2 has nothing to do with that.
It assumes that the user provides a simplified
representation of XML - {Tag, [Attr], Content},
where Attr = {Key, ValueStr}.
(It can also take regular xmerl records, though...)
If you have a simple enough XML structure to begin
with, and you really don't need things like verifying
parse, XPATH, entity expansion, Unicode, etc., you can
easily put together a customized XML parser.
See e.g.
http://www.erlang.org/pipermail/erlang-questions/2005-October/017459.htm
l
BR,
Ulf W
> -----Original Message-----
> From: erlang-questions-bounces@REDACTED
> [mailto:erlang-questions-bounces@REDACTED] On Behalf Of Joel Reymont
> Sent: den 31 januari 2007 13:47
> To: Torbjorn Tornkvist
> Cc: Erlang Questions
> Subject: Re: [erlang-questions] xmerl still slow?
>
>
> On Jan 31, 2007, at 12:28 PM, Torbjorn Tornkvist wrote:
> >
> > An alternative to xmerl may be: erlsom.
>
> What would be the advantage?
>
> Also, can erlsom do this?
>
> xmerl:export_simple([visit(Tree, Env)], xmerl_xml).
>
> Thanks, Joel
>
> --
> http://wagerlabs.com/
>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list