add cpp streambuf examples
update XQuery examples
update CMake examples