Socket/XMLSocket class. Which to choose

Hi,

Ive been trying to use the Socket class for a while now but when i search for any tutorials i get more pages that review the XMLSocket class. What’s the difference? And which one should i use for realtime multiplayer games?

So far i already got a server/client written with the Socket class but it’s given me some trouble reading/editing the binary data in Java. Because it’s in AMF format.

Should i use XMLSocket?

Thanks