Ruby convert single quotes to double quotes in XML
问题 Despite the fact that XML attributs can be defined using single or double quotes, my user is trying to integrate my software with another one that will not accept single quoted attribut values. I user REXML to generate my XMLs. Is there a way to REXML generate double quoted attribute values? If not, is there a way for me to convert it easily? Thanks 回答1: As of Feb 2007 there's a supported way of determining the quoting character. The changes were merged into Ruby sources on Jul 2007 and