diff --git a/doc/examples/optional_serialization.cxx b/doc/examples/optional_serialization.cxx
index 3fc3db6..20d6789 100644
--- a/doc/examples/optional_serialization.cxx
+++ b/doc/examples/optional_serialization.cxx
@@ -37,7 +37,7 @@ class B: public xml::Serialize {
int main(int, char**) {
{ // Serialization as a member
- std::stringstream ss("");
+ std::stringstream ss("Only this text is given");
B b;
b.loadXml(ss);
b.saveXml(std::cout)<