|
From: Mickael R. <mic...@er...> - 2003-11-03 17:40:20
|
Hello,
Here is a message I send to Johan Blom. I realize that it could interest
people on jungerl, so I am reposting it here for discussion (No offense,
Johan).
Cheers,
----- Forwarded message from Mickael Remond <mic...@er...=
> -----
Date: Mon, 3 Nov 2003 17:55:04 +0100
From: Mickael Remond <mic...@er...>
To: joh...@mo...
Subject: xmerl, xmerl_scan and state
User-Agent: Mutt/1.5.4i
Hello,
I am not sure that I am using xmerl properly, but I wonder if this would
not be a good idea to return the last State from xmerl_scan:string and
file, in addition to {Result,Tail} ?
I am doing event based parsing and I am always using the User state to
"accumulate" the result of the parse. However, there is no easy way to
get the final user state back to the function that call the
xmerl_scan functions.
I am planning to do the change myself (small change, see the string/2
function in xmerl_scan), but I do not know what is the xmerl reference.
I am using the jungerl one. Maybe it would be nice to maintain the
current version in Jungerl. Whatever are your choice, could you tell me
what is the reference version ?
Thank you in advance for your help !
--=20
Micka=EBl R=E9mond
http://www.erlang-projects.org/
----- End forwarded message -----
--=20
Micka=EBl R=E9mond
http://www.erlang-projects.org/
|