Hamlet for XML would probably help, yeah. Does it work already, or are there some necessary changes? Although it&#39;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&#39;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">&lt;<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>&gt;</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>
&lt;<a href="mailto:aristidb@googlemail.com">aristidb@googlemail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; I want to construct a Document object from scratch. Using only xml-types,<br>
&gt; this can be somewhat cumbersome. Is there a better way? Maybe a package?<br>
&gt;<br>
&gt; Aristid<br>
<br>
</div></div>One approach is to use the parse functions from xml-enumerator.<br>
Something I&#39;ve toyed around with before is adding the ability to<br>
Hamlet to produce XML documents. Is this the kind of idea you&#39;re<br>
looking for?<br>
<font color="#888888"><br>
Michael<br>
</font></blockquote></div><br></div></div>