diff --git a/documentation/extensions/xhtml.html b/documentation/extensions/xhtml.html
index 9f3ab46d5..94242356c 100644
--- a/documentation/extensions/xhtml.html
+++ b/documentation/extensions/xhtml.html
@@ -102,7 +102,7 @@ In this example we can see how to send a message with XHTML content as part of a
XHTMLManager.addBody(msg, xhtmlBody);
// Send the message that contains the XHTML
- chat1.sendMessage(msg);
+ chat.sendMessage(msg);