extract xml tag

should fix issues mentioned in node-xmpp/node-xmpp-client#33