Problem connecting from flash XMLSocket

Hello,

I am trying to write my own little jabber client sort of thing in Flash. It’'s not exactly competition to the insanity (the good kind of insane :P) that is XIFF. I just want to fiddle with programming in AS with OOP and also just getting into the guts of the jabber protocol.

I am connecting to the local Wildfire server using an XMLSocket and I get the onConnect event. I then try to login. This is where problems ensue.

I am trying to send the following…

<?xml version=''1.0''?>

<stream:stream to=“adityapc” xmlns=“jabber:client” xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0”>

My problem is XMLSocket can only send XML objects. So when I create an xml object with the above source, it automatically closes the

Can anyone point me in the right direction? I tried looking at the XIFF source to find something, but I just kept getting lost in all those files/dirs they have…

Thanks,

Aditya