Hi All,

Vapor is successfully initiating a stream <rubs hands>. In any case, I have 
found that I have to 'trick' the .Net XML writer as far as writing only a start 
element, essentially:

            context.Writer.WriteStartElement("stream", "stream", Uris.Streams);
            context.Writer.WriteAttributeString("from", sn.From);
            context.Writer.WriteAttributeString("to", sn.To);
            context.Writer.WriteAttributeString("id", sn.Id);
            context.Writer.WriteComment("stream start");
            context.Writer.Flush();

This yields (at each step):

            <stream:stream

            <stream:stream from="server"

            <stream:stream from="server" to="[EMAIL PROTECTED]"

            <stream:stream from="server" to="[EMAIL PROTECTED]" id="stream_..."

            <stream:stream from="server" to="[EMAIL PROTECTED]" id="stream_..."
             xmlns:streams="http://etherx.jabber.org/streams";>
              <!-- stream start -->

Is this okay, or will I have to roll my own XML writer (is the comment 
invalid)? (Note that the default xmlns is missing, but this is just an 
example). Should I face any problems with any less xml conformant clients?

Now just to implement SASL plain <grin>.

-- Jonathan

Reply via email to