php xml parsers can't handle bad html. switching to ruby + nokogiri