PHP CSS to XPATH parser