[erlang-questions] xmerl: from tuple to xmerl data structure

Ludovic Coquelle lcoquelle@REDACTED
Fri Jun 29 09:11:07 CEST 2007


Sure, this is a nice solution.
I wanted to avoid to create the XML first and parse it to get the data
structure ... but this is probably premature optimization ;)
Thanks

On 6/29/07, Bertil Karlsson <bertil.karlsson@REDACTED> wrote:
> use the xmerl_xml callback together with export_simple. Then just parse
> it with xmerl_scan:string
>
> /Bertil
>
> Ludovic Coquelle wrote:
> > Hi,
> > Just start to "play" with xmerl. I'm using the xmerl:export_simple/3
> > to transform an erlang data structure in an XML document. Works
> > nicely.
> >
> > Now, I would like to transform the same erlang data structure to the
> > xmerl data structure (xmlElement...), to eventually use the xmerl_xs
> > on it.
> > Is there a simple way to do that?
> > I was thinking to write a simple callback module (like xmerl_xml)
> > which does nothing. Is this a good idea?
> >
> > Thanks
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> >
>



More information about the erlang-questions mailing list