xmlreader.cpp: pass the data shared_ptr by reference