I'm looking into XMPP at the moment. The protocol is basically about sending and retrieving data that is XML formatted. I've tried to read some data by deserializing it to a class but it doesn't work (attributes like xmlns or empty tags don't get deserialized).
For example:
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'>
<required/>
</starttls>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>DIGEST-MD5</mechanism>
<mechanism>KERBEROS_V4</mechanism>
</mechanisms>
</stream:features>
What would be the best way to interpret this kind of XML?