Refactored to use custom _xpath function that use smart_strings=False flag