I need to create an xpath query that looks for books that have a feedback rating of 98%+ but Amazon returns an estimated feedback so instead of returning the string '98'
it returns '98-100%'
is there an easy way to extract the first number from '98-100%'
string so that I can run comparisons using xpath?
Below is the current query I am using.
foreach($xml->xpath("//c:LowestOfferListing[./c:Qualifiers/c:SellerPositiveFeedbackRating = '98-100%']") as $listing) print_r($listing)
Ideally I want something such as:
foreach($xml->xpath("//c:LowestOfferListing[./c:Qualifiers/c:SellerPositiveFeedbackRating > 98]") as $listing) print_r($listing);