XML Socket

I’m making a chat room, everything works, its just, when I recieve a message, I get the full xml string. How to I do it so I just get the name and input. Last site I posted on I just got flamed by some guy saying I’m a noob, so, some helpful answers please. I’m still new to this whole XML thing. As3 I can handle :smiley:

Code so far:

var mySocket:XMLSocket=new XMLSocket();
var username:String="Gunstar"
mySocket.connect("192.168.1.104",5525);
btn.addEventListener(MouseEvent.MOUSE_DO WN,sendData);
function sendData(event:Event) {
mySocket.send("<?xml version=\"1.0\"?><Chat><Info channel=\"channel1\" user=\"" + username + "\" data=\""+input.text+"\" /></Chat>")
}
mySocket.addEventListener(DataEvent.DATA ,recieve)
function recieve(event:DataEvent){
field.text+=event.data
}