append_binary_data
append_binary_data(xml + doff, xmllen - doff);
append_binary_data(xml + doff, dlen);