XML-binary Optimized Packaging (XOP) ?
Wed Jul 15 19:11:30 CEST 2009
On Wed, Jul 15, 2009 at 10:25 AM, Robert Raschke <rtrlists@REDACTED>wrote:
> before I embark on cobbling something together that makes sense of XML
> munged into this XOP format (http://www.w3.org/TR/xop10/) I thought I'd
> ask if anyone out there has already done this in Erlang?
> Thanks for any info,
Right, I made myself a hacky un-XOP-er. It's a bit rough and ready, but
works for my needs (I think).
I'm probably not doing the setting of the #xmlText.type quite right (ie. I
don't). This works for me because I don't care what's inside the xop:Include
elements. But better would probably be a peek into the content-type of the
referenced MIME part and set the type to cdata if needed. Dunno.
This thing depends on xmerl and the mimemail module from gen_smtp (a big
thanks goes out to Andrew Thompson for writing that).
Anyway, if anyone has a need for something similar, here it is. Beware the
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions