let ruby import  xml lib support xpath css selector function

maybe nokogiri is good choice