From: Tobias Reif Date: 2001-11-16T17:48:13+09:00 Subject: [ruby-talk:25399] Re: ANN: REXML 1.1a3 David Alan Black wrote: As you > say, the auto-escaping is just a convenience, but I'm wondering > whether it could be misleading or too convenient :-) Me too. I'd like to get it as a convenient option. > What if I've defined an entity? (And there are the other two > built-ins, but I think you've added handling for those.) For example: > > doc = Document.new < > > ]> > > > Hello, I am &me; > > > EOS > > puts doc.root.elements["person"].text > > # => Hello, I am &me; > > Well, I guess that raises the whole DTD question :-) http://www.w3.org/TR/REC-xml.html#proc-types "Non-validating processors are required to check only the document entity, including the entire internal DTD subset, for well-formedness. [Definition: While they are not required to check the document for validity, they are required to process all the declarations they read in the internal DTD subset and in any parameter entity that they read, up to the first reference to a parameter entity that they do not read; that is to say, they must use the information in those declarations to normalize attribute values, include the replacement text of internal entities, and supply default attribute values.]" http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/~poffice/mail/ruby-talk/25161 http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/~poffice/mail/ruby-talk/25024 AFAICS: REXM should resolve entities and much more things that are in the internal subset. 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/