Parsing XML websocket responses with Strophe.js
问题 I'm using Strophe.js to connect to an XMPP server via websockets. Here's a sample response I get when the connected user receives a message: <message xmlns='jabber:client' xml:lang='en' to='agent@chat.domain.com/6665193359253278721998' from='client@chat.domain.com/Mac' type='chat' id='purple42fccc5c'> <archived by='agent@chat.domain.com' id='1557026681122740' xmlns='urn:xmpp:mam:tmp'/> <stanza-id by='agent@chat.domain.com' id='1557026681122740' xmlns='urn:xmpp:sid:0'/> <active xmlns='http:/