> > When an XML parser receives XML that is not well-formed (be it from an > XML document, or as a string), it must report an error. > AFAICS: It must not try to recover by itself, for resons of > interoperability. REXML does not behave like a standard XML parser. It helps (among other things) to make building XML strings easier. It currently will automagically escape problem characters, like '&' or '<' Having REXML escape the quotes is consistent with current behavior. It is the "REXML Way", so to speak. James > > The guesswork of HTML in cases like > <a>foo><bar<a/> > in something that XML avoids. > > or suggest a method > escape_to_predefined_entities("aaa'bbb\"ccc") > -> "aaa'bbb"ccc" > > Tobi > -- > Tobias Reif > http://www.pinkjuice.com/myDigitalProfile.xhtml > > go_to('www.ruby-lang.org').get(ruby).play.create.have_fun > http://www.pinkjuice.com/ruby/ >