Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
REXML cannot handle apostrophes?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Bilyk, Alex, post: 4604152"] 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 [URL]http://www.stg.brown.edu/service/xmlvalid/[/URL] and see if it's valid. -ab -----Original Message----- From: Stedwick [mailto:philip.brocoum@gmail.com]=20 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 <episode name=3D'03x08 - Future's End ~ 1' rating=3D'100'> 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! [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
REXML cannot handle apostrophes?
Top