From: Sybren Kooistra Date: 2012-09-11T20:42:07+09:00 Subject: Re: Parsing through downloaded html Alright, perfect. It works. However, many variables that I create are based on the POSSIBILITY that a certain xpath/string exists in a file. If it doesnt, it should preferably return a nil or a 'no'. By using at_xpath and then .content, if an xpath (for example pvda = searchablefile.at_xpath("//h1[contains(text(), 'pvda')]") returns nothing, the variable.content (in this case sheet1[row,1] = pvda.content) does not work, and it no longer runs the rest of the code (error = undefined method 'content' for nil:nilClass (NoMethodError) How can I work around this and/or save boolean on the basis of xpath? -- Posted via http://www.ruby-forum.com/.