Hamlet for XML would probably help, yeah. Does it work already, or are there some necessary changes? Although it's maybe a bit too heavyweight for just generating small XML documents that tell S3 to apply location constraints?<div>
<br></div><div>Parsing from a string would not make any sense as the next thing I do is send it down a socket. I want to use Document for the added safety, there. If there's a safe option that directly generates a ByteString or Builder, that would work too.<br>
<div><br></div><div><br></div><div>Aristid</div><div><br><br><div class="gmail_quote">2011/7/3 Michael Snoyman <span dir="ltr"><<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Sun, Jul 3, 2011 at 12:41 AM, Aristid Breitkreuz<br>
<<a href="mailto:aristidb@googlemail.com">aristidb@googlemail.com</a>> wrote:<br>
> Hi,<br>
> I want to construct a Document object from scratch. Using only xml-types,<br>
> this can be somewhat cumbersome. Is there a better way? Maybe a package?<br>
><br>
> Aristid<br>
<br>
</div></div>One approach is to use the parse functions from xml-enumerator.<br>
Something I've toyed around with before is adding the ability to<br>
Hamlet to produce XML documents. Is this the kind of idea you're<br>
looking for?<br>
<font color="#888888"><br>
Michael<br>
</font></blockquote></div><br></div></div>