xmppo / node-xmpp-bosh

An XMPP BOSH & WebSocket server (connection manager) written on node.js using Javascript
https://github.com/xmppo/node-xmpp-bosh
263 stars 85 forks source link

xmlns:stream in <body/> #18

Closed vinnitu closed 12 years ago

vinnitu commented 12 years ago

HI

As I see in http://xmpp.org/extensions/xep-0206.html (2. Wrapper Element) point 2 says:

If the BOSH wrapper is not empty, then it SHOULD contain one of the following:

but we have http://pastebin.com/8D7GTsa2

without xmlns:stream in body and one of our client failed to pasre xml :(

or I missing somethig?...

Thx

vinnitu commented 12 years ago

php class SimpleXMLElement::xpath("//stream:features"); doesn't parse xml without xmlns:stream='http://etherx.jabber.org/streams' in body

but if we use before ::registerXPathNamespace('stream', 'http://etherx.jabber.org/streams');

is works