call for a lightweight xml parser

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Tue Oct 18 12:40:51 CEST 2005


Ulf Wiger wrote:
>
> I timed it on a small XML-like string (no header, and no
> DTD stuff):
> 
> 18> timer:tc(vccXml,simple_xml,["<protocol name=\"vccBasic\" 
> vsn=\"1.0\"/>"]).
> {20,{simple_xml,[{"protocol",[{"vsn","1.0"},{"name","vccBasic"
> }],[]}]}}
> 
> Running the same string through xmerl:
> 
> 15> timer:tc(xmerl_scan,string,["<protocol value=\"vccBasic\"/>"]).
> {410,
[...]

Hmmm, I didn't notice until now that I had actually pasted in a 
_shorter_ XML string into the xmerl example. Add another 20 us
or so to the 410 us above.  (:

/Uffe



More information about the erlang-questions mailing list