added code to fetch attrs
can generate xpaths to text
added xpath text based cosine sim routine