C++ XML Writer