Nokogiri Not Parsing File

Posted by Jesse J on Stack Overflow See other posts from Stack Overflow or by Jesse J
Published on 2010-05-24T23:08:40Z Indexed on 2010/05/24 23:11 UTC
Read the original article Hit count: 250

Filed under:
|
|

I'm using Nokogiri to parse pepXML files from different peptide search engines. I have two pepXML files, both of which appear, inasmuch as I can tell, to be of correct format, and puts Nokogiri::XML(IO.read(file)) will output the whole XML file for both files.

The problem is, doc.xpath("any valid xpath") will parse the tag from one of the files, but not the other. No errors are given, so I have no idea why it won't parse. Anyone know of any reasons why Nokogiri wouldn't parse something out?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about parse