From: "Bilyk, Alex" Date: 2008-04-24T09:34:14+09:00 Subject: Re: REXML cannot handle apostrophes? I believe this is not valid XML. You'd need to covert single ' to " before you can use XML parsers to look at your format as XML. Post your XML file some place like http://www.stg.brown.edu/service/xmlvalid/ and see if it's valid. -ab -----Original Message----- From: Stedwick [mailto:philip.brocoum@gmail.com] Sent: Wednesday, April 23, 2008 5:20 PM To: ruby-talk ML Subject: REXML cannot handle apostrophes? I have this line in my XML file that was created by REXML And I simply cannot access that element using REXML, at all, in any way, no matter what, as far as I can tell... I have tried escaping the apostrophes, I have tried converting them to ', I have tried both directly accessing the element and using XPath, nothing works. Does anybody have any tricks for how to access elements that have attributes with apostrophes in their names? Thanks!