您需要定义一个 自定义类 , 该类 应 实现ExtensionElement (由@Flow定义)
可以在此答案中获得产生以下节的非常详细的解释
<message id='923442621149' type='chat'><body>shanraisshan</body><reply xmlns='shayan:reply' rText='this is custom attribute'/></message>
其中 Reply 是自定义扩展名,其中包含
- 元素 (回复)
- 命名空间 (shayan:reply)
默认的xmpp名称空间列表可在XMPP官方网站上找到



