reverted read(stream) to reference, as pugixml does not like const&