Taha
Taha

Reputation: 1672

pyxmpp - How to send raw XML

How can I send raw XML code using pyxmpp?

something like:

 c.send("<presence to='[email protected]/resource'/>")

Upvotes: 2

Views: 272

Answers (1)

favoretti
favoretti

Reputation: 30197

If I recall it right (can't find an API reference to it now thou), it's

c.stream.write_raw("<presence to='[email protected]/resource/'>")

Upvotes: 1

Related Questions