changed toString to textContent in xpath plugin