Adds xml inject method