update xpath api