Updated to actually transmit the inserted XML