[Mono-dev] MS/Mono XmlWriter incompatibility

Luca kronos.it at gmail.com
Mon Feb 13 19:44:22 EST 2006


Il Mon, Feb 13, 2006 at 11:47:23PM +0100, Vincent Daron ha scritto: 
> <stream:stream version="1.0" to="me at test.com" from="server" 
> xmlns="jabber:client">
> 
> aWriter.WriteStartDocument();
> aWriter.WriteStartElement("stream", 
> "stream","http://etherx.jabber.org/streams");
> aWriter.WriteAttributeString("version", "1.0");
> aWriter.WriteAttributeString("from", "me at test.com");
> aWriter.WriteAttributeString("to", "server");
> aWriter.WriteAttributeString("xmlns", theXmlNamespace);

I think that you should add:

aWrite.WriteEndElement();

instead of the empty string.

Luca
-- 
Home: http://kronoz.cjb.net
Runtime error 6D at f000:a12f : user incompetente



More information about the Mono-devel-list mailing list