27 if( !xhtml->
hasChild(
"body",
XMLNS,
"http://www.w3.org/1999/xhtml" ) )
30 m_xhtml = xhtml->
clone();
40 static const std::string filter =
"/message/html[@xmlns='" +
XMLNS_XHTML_IM +
"']";
46 return m_xhtml->
clone();
52 x->m_xhtml = m_xhtml ? m_xhtml->
clone() : 0;
virtual StanzaExtension * clone() const
XHtmlIM(const Tag *xhtml=0)
The namespace for the gloox library.
This is a wrapper of an XHTML-IM (XEP-0071) message body.
This class abstracts a stanza extension, which is usually an element in a specific namespace...
const std::string & xmlns() const
virtual const std::string & filterString() const
bool hasChild(const std::string &name, const std::string &attr=EmptyString, const std::string &value=EmptyString) const
virtual Tag * tag() const
const std::string & name() const
const std::string XMLNS_XHTML_IM
This is an abstraction of an XML element.