Inject code using xpath lookup